iOS local builds fails in Sidekick
Hi there, I am trying to build my project locally using Sidekick, the build fails with these messages right after the Xcode build... message is shown, then the process continues and finish successfully.
[19-08-29 20:01:37.555] (CLI) note: Using new build systemnote: Planning buildnote: Constructing build description
[19-08-29 20:01:38.156] (CLI) Xcode build...
[19-08-29 20:01:38.849] (CLI) 2019-08-29 20:01:38.848 xcodebuild[78885:2348780] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/0v/034z5q516y3gg8_z75hbm6sm0000gn/T/RasaMobile2_2019-08-29_20-01-38.847.xcdistributionlogs'.
When I try to upload the package (.ipad) using Application Loader, it fails saying:
ERROR ITMS-90161: "Invalid Provisioning Profile. The provisioning profile included in the bundle com.somecompany.app [Payload/App.app] is invalid. [Missing code-signing certificate]. A Distribution Provisioning profile should be used when submitting apps to the App Store. For more information, visit the iOS Developer Portal."
My build.xcconfig looks like this:
// You can add custom settings here
// for example you can uncomment the following line to force distribution code signing
CODE_SIGN_IDENTITY = iPhone Distribution;
// To build for device with XCode 8 you need to specify your development team. More info: https://developer.apple.com/library/prerelease/content/releasenotes/DeveloperTools/RN-Xcode/Introduction.html
DEVELOPMENT_TEAM = 6W9G86W4T4;
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
TARGETED_DEVICE_FAMILY = 1,2;
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
My certificate (.p12 file) was added to the Keychain and I am logged in with my Development Account in Xcode.
I created an iOS Distribution (App Store and Ad Hoc) certificate and then an App Store distribution provisioning profile pointing to that certificate above. Am I doing right?
I am using NativeScript CLI 6.0.3, I am using Xcode 10.3.
Any suggestion? Thanks!
Hi @relez, Excuse me for the delayed reply. I've checked the error and it seems that you are building the app with the incorrect provisioning profile. A similar case is discussed in this thread. Check out the provided solution in it.