Can't install Enterprise app to devices with unregistered UUIDs

旧街凉风 提交于 2019-11-29 22:36:29
  1. Take your IPA file, rename it to have a .zip extension.
  2. Unzip this file and open the Payload directory in Finder.
  3. Right click your application and click Show Package Contents.
  4. Find the file embedded.mobileprovision, and open this file in a text editor (like TextEdit).

Now, if inside this XML document you see a key for ProvisionedDevices, you are not signing with the correct provisioning profile. You need to create a In House provisioning profile instead. In the case that you've correctly signed your application with an In House profile, you will not see the ProvisionedDevices key in your embedded.mobileprovsion file, rather a key for ProvisionsAllDevices, which will be true.

The reason for this error is because in iOS 7.1 Beta, the link to the plist must be in https format. If the URL is not provided to you in https format, simply change the http to https, as follows: itms-services://?action=download-manifest&url=https://hostname.utest.com/OTA_App_Name.plist Then, copy and paste the entire link (starting at itms-services) into Safari, and you will be able to download and install the app using OTA.

apouche

If this can be of any help, I had the same issue and was really using an enterprise certificate but the issue was coming from the ipa itself.

You should NOT use xcodebuild to create the ipa:

xcodebuild \
 -exportArchive \
 -exportFormat IPA \
 -exportPath "$BUILD_PATH/$PRODUCT_NAME.ipa" \
 -archivePath "$BUILD_PATH/$PRODUCT_NAME.xcarchive

but instead use xcrun

xcrun -sdk iphoneos PackageApplication \
  -v $BUILD_PATH/$PRODUCT_NAME.xcarchive/Products/Applications/$PROJECT_NAME.app \
  -o $BUILD_PATH/$PRODUCT_NAME.ipa

because otherwise the file archived-expanded-entitlements.xcent is stripped during the ipa creation which leads to same error.

I agree with you, it is not necessary to register device for enterprise certificate. It seems that your profile is not "linked" to your enterprise certificate but a adhoc certificate, is it possible? (if you have several certificates). Have you try to delete and reinstall certificates in the keychain access?

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!