Im trying to run my project in Xcode version Xcode: 14.1
(in Xcode 13 is running perfectly)
"dependencies": {
...
"react-native": "~0.61.5",
"#stripe/stripe-react-native": "^0.2.2",
...
},
"devDependencies": {
...
"#types/stripe-v3": "^3.1.26",
...
},
Im getting the following error: Stored properties cannot be marked potentially unavailable with '#available' in Pods / Stripe ...
enter image description here
I tried to clean build folder in Xcode, i need a workaround.
Try to change
#available(iOS 13 ...
to
#available(iOS 11 ...
I editted the yaml to reflect comments below.
I am getting the following error when I try to run my Pipeline and get to running the xCode task:
The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'GoogleAppMeasurement' from project 'Pods')
My Pipeline yaml file looks like this....
variables:
scheme: "App"
sdk: "iphoneos"
configuration: "Release"
pool:
vmImage: 'macOS-10.15' #'macOS-latest'
- task: InstallAppleCertificate#2
inputs:
certSecureFile: 'Certificates.p12'
certPwd: 'mypassword'
keychain: 'temp'
deleteCert: true
- task: InstallAppleProvisioningProfile#1
inputs:
provisioningProfileLocation: 'secureFiles'
provProfileSecureFile: Distribution_Profile.mobileprovision
removeProfile: true
- script: |
sudo gem install cocoapods
displayName: 'Install Cocoa Pods'
- script: |
pod repo update
displayName: 'Update Cocoa Pods'
- script: |
ionic cordova build ios --prod --buildFlag="-UseModernBuildSystem=0"
displayName: 'Build Ionic iOS App'
- task: Xcode#5
inputs:
actions: 'build'
scheme: 'MyProject'
configuration: '$(configuration)'
sdk: '$(sdk)'
xcWorkspacePath: '$(Build.SourcesDirectory)/platforms/ios/TechPro.xcworkspace'
xcodeVersion: 'default'
packageApp: true
signingOption: manual
signingIdentity: '$(APPLE_CERTIFICATE_SIGNING_IDENTITY)'
provisioningProfileUuid: '$(APPLE_PROV_PROFILE_UUID)'
teamId: 'myteamid'
exportTeamId: 'myteamid'
exportMethod: 'ad-hoc'
exportOptions: 'specify'
exportOptionsPlist: '$(Build.SourcesDirectory)/platforms/ios/MyProject/MyProject-Info.plist'
I modified the podfile to add the following...
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['CODE_SIGNING_REQUIRED'] = "NO"
config.build_settings['CODE_SIGNING_ALLOWED'] = "NO"
end
end
end
An Xcode app must be signed and provisioned to run on a device or be published to the App Store. It looks like your ios app is not successfully signed.
This arguement CODE_SIGNING_ALLOWED=No will skip the code signing. See this thread. You can also check the task log of the Xcode task to see if your app is successfully signed.
You could try to remove the arguments CODE_SIGNING_ALLOWED=No -CODE_SIGNING_REQUIRED=NO in Xcode task and check if it could work.
I have an NS 6.3.0 Core app on a windows 10 machine. When I try to build the cli gets stuck. Here are the details:
PS C:\DEV PROJECTS\DRAX\Project\wa_app> tns build android
Copying template files...
Platform android successfully added. v6.3.1
Preparing project...
Starting type checking service...
Using 1 worker with 4096MB memory limit
I have left it there for 90 minutes without any additional activity. Here is the output if I use --log trace:
Looking for project in 'C:\DEV PROJECTS\DRAX\Project\wa_app'
Project directory is 'C:\DEV PROJECTS\DRAX\Project\wa_app'.
Loading extensions.
System information:
{
"platform": "win32",
"shell": "C:\\WINDOWS\\system32\\cmd.exe",
"os": "Windows 10 Pro 6.3.18362",
"procArch": "x64",
"nodeVer": "12.6.0",
"npmVer": "6.9.0",
"nodeGypVer": null,
"nativeScriptCliVersion": "6.3.0",
"gitVer": "2.15.1.windows.2",
"dotNetVer": "4.8.03752",
"javacVersion": "1.8.0_172",
"javaVersion": "1.8.0_172",
"javaPath": "C:\\Program Files\\Java\\jdk1.8.0_172\\bin\\java.exe",
"adbVer": "1.0.41",
"androidInstalled": true,
"monoVer": null,
"gradleVer": null,
"isAndroidSdkConfiguredCorrectly": true,
"xcodeprojLocation": null,
"itunesInstalled": false,
"isCocoaPodsWorkingCorrectly": false,
"isCocoaPodsUpdateRequired": false,
"pythonInfo": null
}
Current CLI version: 6.3.0
Starting watch on killswitch C:\Users\Daniel\AppData\Local\Temp\Daniel\KillSwitches\cli
Trying to handle SIGINT event. CLI overrides this behavior and does not allow handling SIGINT as this causes issues with Ctrl + C in terminal.
The stackTrace of the location trying to handle SIGINT is:
at process.on (C:\Users\Daniel\AppData\Roaming\npm\node_modules\nativescript\lib\nativescript-cli.js:24:28)
at C:\Users\Daniel\AppData\Roaming\npm\node_modules\nativescript\node_modules\signal-exit\index.js:122:15
at Array.filter (<anonymous>)
at load (C:\Users\Daniel\AppData\Roaming\npm\node_modules\nativescript\node_modules\signal-exit\index.js:120:21)
at module.exports (C:\Users\Daniel\AppData\Roaming\npm\node_modules\nativescript\node_modules\signal-exit\index.js:35:5)
at Object.<anonymous> (C:\Users\Daniel\AppData\Roaming\npm\node_modules\nativescript\node_modules\proper-lockfile\lib\lockfile.js:296:1)
at Module._compile (internal/modules/cjs/loader.js:776:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)
at Module.load (internal/modules/cjs/loader.js:643:32)
at Function.Module._load (internal/modules/cjs/loader.js:556:12)
at Module.require (internal/modules/cjs/loader.js:683:19)
at require (internal/modules/cjs/helpers.js:16:16)
at Object.<anonymous> (C:\Users\Daniel\AppData\Roaming\npm\node_modules\nativescript\node_modules\proper-lockfile\index.js:3:18)
at Module._compile (internal/modules/cjs/loader.js:776:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)
at Module.load (internal/modules/cjs/loader.js:643:32)
spawn: C:\Program Files\nodejs\node.exe "C:\Users\Daniel\AppData\Roaming\npm\node_modules\nativescript\lib\detached-processes\cleanup-process.js" "C:\Users\Daniel\AppData\Roaming\npm\node_modules\nativescript\lib\bootstrap.js"
Shasum of file C:\DEV PROJECTS\DRAX\Project\wa_app\package.json is b3aed19d4e097a799102ec94894a2a7b24e4c758
Got cached result for shouldMigrate for platform: Android
Initializing analytics statuses.
Analytics statuses: { TrackFeatureUsage: 'disabled', TrackExceptions: 'disabled' }
getInfos cacheConfig options: { forceCheck: undefined } current info from cache: [
{
message: 'Your ANDROID_HOME environment variable is set and points to correct directory.',
platforms: [ 'Android' ],
type: 'info'
},
{
message: 'Your adb from the Android SDK is correctly installed.',
platforms: [ 'Android' ],
type: 'info'
},
{
message: 'The Android SDK is installed.',
platforms: [ 'Android' ],
type: 'info'
},
{
message: 'A compatible Android SDK for compilation is found.',
platforms: [ 'Android' ],
type: 'info'
},
{
message: 'Javac is installed and is configured properly.',
platforms: [ 'Android' ],
type: 'info'
},
{
message: 'The Java Development Kit (JDK) is installed and is configured properly.',
platforms: [ 'Android' ],
type: 'info'
},
{
message: 'Local builds for iOS can be executed only on a macOS system. To build for iOS on a different operating system, you can use the NativeScript cloud infrastructure.',
additionalInformation: '',
platforms: [ 'iOS' ],
type: 'info'
}
]
Your ANDROID_HOME environment variable is set and points to correct directory.
Your adb from the Android SDK is correctly installed.
The Android SDK is installed.
A compatible Android SDK for compilation is found.
Javac is installed and is configured properly.
The Java Development Kit (JDK) is installed and is configured properly.
Local builds for iOS can be executed only on a macOS system. To build for iOS on a different operating system, you can use the NativeScript cloud infrastructure.
Selected targetSdk is: 28
Installed Android Targets are: [ 'android-25', 'android-26', 'android-28' ]
Selected buildToolsVersion is: 28.0.3
Validate options for platform: Android
Project dir from hooksArgs is: C:\DEV PROJECTS\DRAX\Project\wa_app.
Hooks directories: [ 'C:\\DEV PROJECTS\\DRAX\\Project\\wa_app\\hooks' ]
BeforeHookName for command prepare is before-prepare
Preparing project...
spawn: C:\Program Files\nodejs\node.exe "--max_old_space_size=4096" "--preserve-symlinks" "C:\DEV PROJECTS\DRAX\Project\wa_app\node_modules\webpack\bin\webpack.js" "--config=C:\DEV PROJECTS\DRAX\Project\wa_app\webpack.config.js" "--env.android" "--env.appPath=app" "--env.appResourcesPath=app\App_Resources" "--env.verbose" "--env.sourceMap"
clean-webpack-plugin: C:\DEV PROJECTS\DRAX\Project\wa_app\platforms\android\app\src\main\assets\app\**\* has been removed.
clean-webpack-plugin: C:\DEV PROJECTS\DRAX\Project\wa_app\platforms\android\app\src\main\assets\snapshots has been removed.
clean-webpack-plugin: C:\DEV PROJECTS\DRAX\Project\wa_app\platforms\android\app\build\configurations\nativescript-android-snapshot has been removed.
Starting type checking service...
Using 1 worker with 4096MB memory limit
The CLI also hangs on tns run command with:
C:\DEV PROJECTS\DRAX\Project\wa_app>tns run android
Searching for devices...
Preparing project...
File change detected. Starting incremental webpack compilation...
Starting type checking service...
Using 1 worker with 4096MB memory limit
webpack is watching the files…
I have tried removing nativescript, restarting my machine, restarting VS Code with no results. The same happens if I try to use SideKick.
Any ideas on how to get past this?
Thanks
After some testing, I narrowed it down to the https://www.npmjs.com/package/nativescript-contacts plugin. I do not know what the reason is, but as soon as I uninstalled it, everything worked as expected.
I get the following error when building after changed the mac machine(I'm using VMWare and created new machine to use the latest OS version)
I copied the xcode project from old machine to the new one.
Severity Code Description Project File Line Suppression State
Error 2019-12-16 04:09:43.959 ibtoold[1526:26675] DEBUG: Added to
environment: {
TMPDIR = "/var/folders/xn/r2znrb712jl3558nqh0000gn/T/1AA1234D-4B58-5555-6665-52BC1709F584";
} 2019-12-16 04:09:45.057 IBCocoaTouchImageCatalogTool[1549:27672]
Unable to get image dimensions for
file:///Users/user/Library/Caches/Xamarin/mtbs/builds/ExpoUp.iOS/xxx/obj/iPhone/Release/actool/cloned-assets/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20#1x.png
2019-12-16 04:09:45.076 IBCocoaTouchImageCatalogTool[1549:27672]
CoreThemeDefinition: Unable to create image for
file:///Users/user/Library/Caches/Xamarin/mtbs/builds/ExpoUp.iOS/xxx/obj/iPhone/Release/actool/cloned-assets/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60#2x.png
I'm trying to create a IPA from my cordova-ionic project using visual studio 2015. I can run the project on an iOS simulator using remotebuild.
I have followed the steps here and created a provisioning profile (using my free Apple ID). I am in a tricky situation and the iOS device that I would like to run the project on is in a different country.
I'm creating the provisioning profile on my friend's mac with the iOS device attached. I am then logging into an El Capitan VM on my machine and using the provisioning profile generated on my friend's mac to attempt to create an IPA. I am following what is outlined here and running the project on visual studio using debug and remote device or local device.
I get the following error:
Error: Remote build error from the build server Build failed with error Error code 65 for command:
xcodebuild with args: -xcconfig,/Users/noyolk/.taco_home/remote-builds/taco-remote/builds/708/cordovaApp/platforms/ios/cordova/build-debug.xcconfig,-project,BookYourTutor.xcodeproj,ARCHS=armv7 arm64,-target,BookYourTutor,-configuration,Debug,-sdk,iphoneos,build,VALID_ARCHS=armv7 arm64,CONFIGURATION_BUILD_DIR=/Users/noyolk/.taco_home/remote-builds/taco-remote/builds/708/cordovaApp/platforms/ios/build/device,SHARED_PRECOMPS_DIR=/Users/noyolk/.taco_home/remote-builds/taco-remote/builds/708/cordovaApp/platforms/ios/build/sharedpch - 1 BookYourTutor 1
Looking at the output from build, towards the end, i see:
Libtool /Users/noyolk/.taco_home/remote-builds/taco-remote/builds/708/cordovaApp/platforms/ios/build/device/libCordova.a normal armv7
cd /Users/noyolk/.taco_home/remote-builds/taco-remote/builds/708/cordovaApp/platforms/ios/CordovaLib
export IPHONEOS_DEPLOYMENT_TARGET=8.0
export PATH="/Users/noyolk/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Users/noyolk/Downloads/Xcode-beta.app/Contents/Developer/usr/bin:/Users/noyolk/.taco_home/node_modules/taco-remote-lib/2.2.1/node_modules/taco-remote-lib/node_modules/ios-sim/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Users/noyolk/Downloads/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -static -arch_only armv7 -syslibroot /Users/noyolk/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.0.sdk -L/Users/noyolk/.taco_home/remote-builds/taco-remote/builds/708/cordovaApp/platforms/ios/build/device -filelist /Users/noyolk/.taco_home/remote-builds/taco-remote/builds/708/cordovaApp/platforms/ios/CordovaLib/build/CordovaLib.build/Debug-iphoneos/CordovaLib.build/Objects-normal/armv7/Cordova.LinkFileList -o /Users/noyolk/.taco_home/remote-builds/taco-remote/builds/708/cordovaApp/platforms/ios/build/device/libCordova.a
=== BUILD TARGET BookYourTutor OF PROJECT BookYourTutor WITH CONFIGURATION Debug ===
Check dependencies
Signing for "BookYourTutor" requires a development team. Select a development team in the project editor.
Code signing is required for product type 'Application' in SDK 'iOS 10.0'
** BUILD FAILED **
The following build commands failed:
Check dependencies
(1 failure)
Failed to build app for buildNumber 708: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/noyolk/.taco_home/remote-builds/taco-remote/builds/708/cordovaApp/platforms/ios/cordova/build-debug.xcconfig,-project,BookYourTutor.xcodeproj,ARCHS=armv7 arm64,-target,BookYourTutor,-configuration,Debug,-sdk,iphoneos,build,VALID_ARCHS=armv7 arm64,CONFIGURATION_BUILD_DIR=/Users/noyolk/.taco_home/remote-builds/taco-remote/builds/708/cordovaApp/platforms/ios/build/device,SHARED_PRECOMPS_DIR=/Users/noyolk/.taco_home/remote-builds/taco-remote/builds/708/cordovaApp/platforms/ios/build/sharedpch
MSBUILD : cordova-build error : Error: Remote build error from the build server Build failed with error Error code 65 for command: xcodebuild with args: -xcconfig,/Users/noyolk/.taco_home/remote-builds/taco-remote/builds/708/cordovaApp/platforms/ios/cordova/build-debug.xcconfig,-project,BookYourTutor.xcodeproj,ARCHS=armv7 arm64,-target,BookYourTutor,-configuration,Debug,-sdk,iphoneos,build,VALID_ARCHS=armv7 arm64,CONFIGURATION_BUILD_DIR=/Users/noyolk/.taco_home/remote-builds/taco-remote/builds/708/cordovaApp/platforms/ios/build/device,SHARED_PRECOMPS_DIR=/Users/noyolk/.taco_home/remote-builds/taco-remote/builds/708/cordovaApp/platforms/ios/build/sharedpch - 1
Error Remote build error from the build server Build failed with error Error code 65 for command: xcodebuild with args: -xcconfig,/Users/noyolk/.taco_home/remote-builds/taco-remote/builds/708/cordovaApp/platforms/ios/cordova/build-debug.xcconfig,-project,BookYourTutor.xcodeproj,ARCHS=armv7 arm64,-target,BookYourTutor,-configuration,Debug,-sdk,iphoneos,build,VALID_ARCHS=armv7 arm64,CONFIGURATION_BUILD_DIR=/Users/noyolk/.taco_home/remote-builds/taco-remote/builds/708/cordovaApp/platforms/ios/build/device,SHARED_PRECOMPS_DIR=/Users/noyolk/.taco_home/remote-builds/taco-remote/builds/708/cordovaApp/platforms/ios/build/sharedpch - {1}
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
========== Deploy: 0 succeeded, 0 failed, 0 skipped ==========
With what I believe to be the most important bit being,
=== BUILD TARGET BookYourTutor OF PROJECT BookYourTutor WITH CONFIGURATION Debug ===
Check dependencies
Signing for "BookYourTutor" requires a development team. Select a development team in the project editor.
Code signing is required for product type 'Application' in SDK 'iOS 10.0'
** BUILD FAILED **
I'm having trouble understanding what exactly this means or how I should fix it. For context, I'm using xcode 8 beta 4 on my El Capitan VM.
I've tried searching around for this 'error code 65' and the error message 'Signing for XXX requires a development team. Select a development team in the project editor.' but have not had much luck.
Any help is greatly appreciated.
Downgrading to xcode 7 from xcode 8 beta 4 seems to have resolved this issue.
There is a change due to the release of iOS 10.
Reference https://dpogue.ca/articles/cordova-xcode8.html for a workaround.
I actually had to do some trial and error. The above link helped a lot, but the issues were still with what Apple was needing for XCode 8 to accept the build request. My settings in build.json are similar to this:
"ios": {
"debug": {
"developmentTeam": "[my team id]",
"provisioningProfile: "[my provisioning profile]"
},
"release": {
"developmentTeam": "[my team id]",
"provisioningProfile: "[my provisioning profile]"
}
}
}
To get your developmentTeam, log into developer.apple.com, click on Membership, and you will see your TEAM ID. Put that in as the developmentTeam.
For the provisioningProfile, open XCode --> Preferences, click on your profile, View Details. Click on your provisioning profile, right click, and Show in Finder. Your provisioning profile is the entire file name, minus the .mobileprovision file extension. Save build.json, rebuild your project, and you should be good to go.