Make Ad-hoc builds in Xcode 6 without signing in to developer account

我是研究僧i 提交于 2019-12-03 01:59:46

问题


Before Xcode 6, it was sufficient to provide only a *.p12 certificate and *.mobileprovision file to Xcode in order to export an *.ipa file for Ad Hoc builds.

Xcode 6 opens the Organizer as usual when the archive is ready, but when I press the "Export" button, the Organizer asks to select a Development Team. It does not allow me to proceed without one even though I have *.p12 and *.mobileprovision installed.

To save for Ad Hoc Development, select a Development Team to use for provisioning:

I know that a developer account could be exported from Xcode accounts pane, but there is a problem with that. It exports all certificates and mobileprovision files associated with it. This includes other profiles that I don't want to include (because I want to share the resulting export with a project team and don't want to include non-relevant profiles).

Is there any way to avoid this "helpful" feature and just export the relevant *.p12 and *.mobileprovision?


回答1:


Just select "Use local signing assets" in the accounts drop down.




回答2:


If you are using Testflight to upload adhoc builds, it's easier. Install the Testflight app for Mac and run it. Whenever you do an archive in Xcode, it auto shows a popup whether to upload it. You need not export the build from Xcode and avoid signing in to developer account.

Alternatively, if you don't want to distribute on Testflight, you can right click (or option click) on the build in Xcode > Organizer and select "Show in Finder" and right click the archived file for "Show package contents" and get the .app. Put the .app inside a directory called Payload and zip up the the file to Payload.zip. Rename Payload.zip to myapp.ipa to distribute manually.




回答3:


Edit: A long time has passed since this answer. As for now I suggest using Fastlane for building the app from command line - with proper configuration it won't require signing with dev account.

Original answer below:

I don't know how to do it in xcode, however - I've managed to do it using command line tools:

xcodebuild -configuration Release -scheme SCHEME_NAME -workspace Workspace.xcworkspace clean archive -archivePath build/App
xcodebuild -configuration Release -exportArchive -exportFormat ipa -archivePath "build/App.xcarchive" -exportPath "build/App.ipa" -exportProvisioningProfile "PROVISIONING_PROFILE_NAME"



回答4:


We were having the same problem. I tried building the project and making the archive using Xcode 6 and after that I go to the Organizer window of XCode 5 and export the adhoc build from there. It works fine.




回答5:


This solution worked for me.

https://stackoverflow.com/a/26497744/1500634

Xcode Version 6.1 TestFlight Version 1.0 (320)




回答6:


Download a previous version of Xcode, I just got the version 4.6.3 and it worked fine so far.

https://developer.apple.com/downloads/index.action




回答7:


In my case, i use Unity 5.0.1p1 with Vuforia 4.2.3.
So, it have a QCARWrapper.bundle on "Build Phases > Copy Bundle Resources"

I delete it, and export. Works!!!

I do this only for EXPORT FOR AD HOC.

Hope this help someone.




回答8:


In fact, you need to create a new Distribution profile, specific for Ad Hoc Deployment. This can be found in the classic member center, but it is a new type of certificate.

You can then select which devices can be used to test the app as ou would do with a developer profile.

Alternatively you can use the TestFlight solution provided by Apple with iOS 8 to enable your user to have access to prereleases.



来源:https://stackoverflow.com/questions/25842165/make-ad-hoc-builds-in-xcode-6-without-signing-in-to-developer-account

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