Xcodebuild, how to sign a command line application?

I try to export IPA using the command line, I can not do it in Xcode because the application is created for the client, and I am not a member of his team (I really hope that Apple changes this and makes it work like in Xcode 5: / )

Anyway, I did more research and tried this command:

xcodebuild -exportArchive -archivePath pcdev.xcarchive -exportPath ~/Desktop/playcadeAdHoc.ipa -exportFormat ipa -PROVISIONING_PROFILE= xxxxxxx-8a61-4264-8fe9-0513bd7935e6 -CODE_SIGN_IDENTITY=iPhone Developer:xxxxx

It really exported .ipa, but I could not run it on my phone; I am stuck in installation state. I looked at the command logs and I think this is causing the problem:

Checking the original application

  • / usr / bin / codesign --verify -vvvv / var / folders / ks / gxlbsszj7t58y5n6z8d1hpcm0000gn / T / 7F8E1EF2-5238-4EC6-AE74-CDEC6C082A76-2731-00000AE5DF0617E4 / rign / insjt5zzssssb index T / 7F8E1EF2-5238-4EC6-AE74-CDEC6C082A76-2731-00000AE5DF0617E4 / games.app: missing or invalid file missing file: / private / var / folders / cc / gxlbsszj7t58y5n6z8d1hpcm0000gn8EC2EF2EC2EF2EC2EF2EC2EF2EC2EF2EC2EF7EC2EF2EC2EF2EC2EF2EC2EF2EC8EF2EC8EF2EC8EF6EC8EF2EC8EF8EC6EC8EF8EC6EC8EF8EC6EC8EF8EC6EC8EF8EC6EF88 -2731-00000AE5DF0617E4 / games.app / archived-extended-Rightlements.xcent]

Codesign : /var/folders/ks/gxlbsszj7t58y5n6z8d1hpcm0000gn/T/7F8E1EF2-5238-4EC6-AE74-CDEC6C082A76-2731-00000AE5DF0617E4/games.app: // // // : / // : / // : / / /gxlbsszj7t58y5n6z8d1hpcm0000gn/ /7F8E1EF2-5238-4EC6-AE74-CDEC6C082A76-2731-00000AE5DF0617E4/games.app/ -entitlements.xcent

, , Xcode , , adhoc .

Apple , , , .

: , , "...":

xcrun -sdk iphoneos PackageApplication ~/Desktop/finalX.xcarchive/Products/Applications/games.app -o ~/Desktop/playcadetest.ipa --sign "iPhone Developer: Name Name (xxxxxxxx)" --embed ~/Desktop/p/adhoc.mobileprovision

+5
1

, ; :

-PROVISIONING_PROFILE= xxxxxxx-8a61-4264-8fe9-0513bd7935e6 
-CODE_SIGN_IDENTITY=iPhone Developer:xxxxx

:

-exportProvisioningProfile "Provisioning profile full name "

- , XCode, UDID ( , ), .

, , :

xcodebuild -exportArchive -archivePath myArchive.xcarchive -exportPath myApp.ipa -exportFormat ipa -exportProvisioningProfile "Provisioning profile full name"

:

  • ( ), (cd desktop),
  • ( ), , .
+10

All Articles