Xcode 9, cordova project build error: Add a profile to the "provisioningProfiles" dictionary in your Export Options property list.

Ionic cordova project build Error under Xcode 9.


Xcode 8.3.3 archived and exported without problems. Yesterdays release Xcode 9 generate error.


** ARCHIVE SUCCEEDED **


2017-09-13 18:59:09.936 xcodebuild[14404:541300] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/ks/tmzgfbh52kzd2d0nnyvfwn5c0000gn/T/PremoveExpert_2017-09-13_18-59-09.935.xcdistributionlogs'.

2017-09-13 18:59:10.768 xcodebuild[14404:541300] [MT] IDEDistribution: Step failed: <IDEDistributionSigningAssetsStep: 0x7fe25dd32870>: Error Domain=IDEDistributionSigningAssetStepErrorDomain Code=0 "Locating signing assets failed." UserInfo={NSLocalizedDescription=Locating signing assets failed., IDEDistributionSigningAssetStepUnderlyingErrors=(

"Error Domain=IDEProvisioningErrorDomain Code=9 \"\"PremoveExpert.app\" requires a provisioning profile.\" UserInfo={NSLocalizedDescription=\"PremoveExpert.app\" requires a provisioning profile., NSLocalizedRecoverySuggestion=Add a profile to the \"provisioningProfiles\" dictionary in your Export Options property list.}"

)}

error: exportArchive: "PremoveExpert.app" requires a provisioning profile.


Error Domain=IDEProvisioningErrorDomain Code=9 ""PremoveExpert.app" requires a provisioning profile." UserInfo={NSLocalizedDescription="PremoveExpert.app" requires a provisioning profile., NSLocalizedRecoverySuggestion=Add a profile to the "provisioningProfiles" dictionary in your Export Options property list.}


** EXPORT FAILED **


Error: Error code 70 for command: xcodebuild with args: -exportArchive,-archivePath,PremoveExpert.xcarchive,-exportOptionsPlist,/Users/macbook/IOS/PremoveExpert/platforms/ios/exportOptions.plist,-exportPath,/Users/macbook/IOS/PremoveExpert/platforms/ios/build/device


[ERROR] An error occurred while running cordova run ios --device (exit code 1).

Accepted Reply

Solved, had manually edit build-release.xcconfig
and change rows to:

CODE_SIGN_IDENTITY = iPhone Developer
CODE_SIGN_IDENTITY[sdk=iphoneos*] = iPhone Developer

Replies

Solved, had manually edit build-release.xcconfig
and change rows to:

CODE_SIGN_IDENTITY = iPhone Developer
CODE_SIGN_IDENTITY[sdk=iphoneos*] = iPhone Developer