IOS build fails export with --prod --release


#1

I have configured and reconfigured my certificates and provisioning profiles in the Apple Developer console. However, when I run:

ionic cordova build ios --device --prod --release

I get:

2017-11-13 02:52:41.540 xcodebuild[13279:394001] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/5n/9fdb583s36339kyg9kmmh0kh0000gn/T/MyApp_2017-11-13_02-52-41.539.xcdistributionlogs'.
2017-11-13 02:52:41.880 xcodebuild[13279:394001] [MT] IDEDistribution: Step failed: <IDEDistributionSigningAssetsStep: 0x7f95c8628050>: Error Domain=IDEDistributionSigningAssetStepErrorDomain Code=0 "Locating signing assets failed." UserInfo={NSLocalizedDescription=Locating signing assets failed., IDEDistributionSigningAssetStepUnderlyingErrors=(
    "Error Domain=IDEProvisioningErrorDomain Code=9 \"\"MyApp.app\" requires a provisioning profile with the Push Notifications feature.\" UserInfo={NSLocalizedDescription=\"MyApp.app\" requires a provisioning profile with the Push Notifications feature., NSLocalizedRecoverySuggestion=Add a profile to the \"provisioningProfiles\" dictionary in your Export Options property list.}"
)}
error: exportArchive: "MyApp.app" requires a provisioning profile with the Push Notifications feature.

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

** EXPORT FAILED **

I’m absolutely positive that the certificate and provisioning profile have push notifications activated
I have tried removing the platform and re-adding and re-building, the problem persists. Is there some other setting somewhere that I’m missing?

#IOS #Cordova #Build


#2

Im able to build directly in xcode, but still not from the command line with --prod --release :frowning:

Anyone with ideas - all ears! :slight_smile:


#3

Same problem here.
Any help?


#4

I am facing this problem after update to xcode9.
Any help?


#5

Hi, I have same issue, I can build app fine in xcode but not via the CLI!
As a consequence, push notifications are not working in iOS for me.

Did you find any fix for this?

Thanks,
Noel


#6

Roll back to app-scripts 3.1.4 from 3.1.8


#7

Thanks, is that cli or ionic version ?

This is what I’m on:

ionic (Ionic CLI) : 3.20.0
ionic1 1.3.3
ios 4.5.3


#8

@ionic/app-scripts, look in your package.json to see what version you’re on


#9

yeah, i’m actually not using the ionic app scripts!

I’m still getting this error on CLI but I got notifications working again. I recreated my cert, auth key and provisioning profile, deleted and setup everything again in FCM. I just do a ionic cordova prepare and build the app in xcode then.

I’m pretty sure the problem is current version of cordova-ios is not updating something!

Said I’d post in case anyone has same problem… thanks for reply