简体   繁体   中英

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

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?

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.

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"

Just select "Use local signing assets" in the accounts drop down. 在此输入图像描述

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.

This solution worked for me.

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

Xcode Version 6.1 TestFlight Version 1.0 (320)

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

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.

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.

配置文件创建的屏幕截图

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM