Xcrun does not implement past training profile

I have myApp.app package that was created using the command line. This application package contains the distribution inside. Now I need to make a separate ipa package for testing (a sign with a development profile), so I execute the xcrun command:

/usr/bin/xcrun -sdk iphoneos PackageApplication -v "./MyApp.app" -o "./MyApp.ipa" --sign "iPhone Developer: My Name (XXX)" -- embed "XXX.mobileprovision"

The problem is that ipa is being created, but with the same profile for preparing the distribution application store. In the console, everything looks fine:

Codesigning ...
app: replacing existing signature

Xcrun seems to be ignoring the values ​​of -embed and -sign. I triple checked the mobile communications profile - its number is correct and it exists inside the ProvisioningProfiles directory. The same can be said for the meaning of --sign. Any ideas?

The interesting part is that if I archive the application through Xcode and then create an ipa file through Organizer, then the Organizer will ask us to select a profile and create the correct ipa file after I select the IOS provisioning profile. But the Xcode debugging console shows the log only for the archive process, so I see only part of the package with the distribution profile. It does not show the organizer-> distribute-> AddHoc step on the console when I select the IOS Team provisioning profile, so I wrote the values ​​for -sign and -embed manually, checking the profile with TextEdit and looking at the name (iOS team provisioning).

+4
source share
1 answer

, , "-" "embed", ?

+4

Source: https://habr.com/ru/post/1530602/


All Articles