ios 无需登录开发人员帐户即可在 Xcode 6 中进行临时构建
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/25842165/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Make Ad-hoc builds in Xcode 6 without signing in to developer account
提问by nalexn
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 之前,只需向 Xcode 提供 *.p12 证书和 *.mobileprovision 文件就足够了,以便为 Ad Hoc 构建导出 *.ipa 文件。
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.
当存档准备好时,Xcode 6 会像往常一样打开管理器,但是当我按下“导出”按钮时,管理器会要求选择一个开发团队。即使我安装了 *.p12 和 *.mobileprovision,它也不允许我在没有一个的情况下继续。
To save for Ad Hoc Development, select a Development Team to use for provisioning:
要为 Ad Hoc Development 保存,请选择一个用于配置的开发团队:
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).
我知道可以从 Xcode 帐户窗格中导出开发者帐户,但是这存在问题。它导出与其关联的所有证书和 mobileprovision 文件。这包括我不想包含的其他配置文件(因为我想与项目团队共享生成的导出并且不想包含不相关的配置文件)。
Is there any way to avoid this "helpful" feature and just export the relevant *.p12 and *.mobileprovision?
有什么办法可以避免这种“有用”的功能,而只是导出相关的 *.p12 和 *.mobileprovision?
采纳答案by Sherwin Zadeh
Just select "Use local signing assets" in the accounts drop down.
只需在帐户下拉列表中选择“使用本地签名资产”即可。
回答by Sasi Kiran Malladi
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.
如果您使用 Testflight 上传临时构建,则更容易。安装适用于 Mac 的 Testflight 应用程序并运行它。每当您在 Xcode 中进行存档时,它都会自动显示一个是否上传的弹出窗口。您无需从 Xcode 导出构建并避免登录开发者帐户。
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.
或者,如果您不想在 Testflight 上分发,您可以右键单击(或选项单击)Xcode > Organizer 中的构建,然后选择“在 Finder 中显示”,然后右键单击“显示包内容”的存档文件并获取.app。将 .app 放在名为 Payload 的目录中,然后将文件压缩到 Payload.zip。将 Payload.zip 重命名为 myapp.ipa 以手动分发。
回答by mlepicki
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.
编辑:这个答案已经过去了很长时间。至于现在,我建议使用 Fastlane 从命令行构建应用程序 - 如果配置正确,则不需要使用开发帐户进行签名。
Original answer below:
原答案如下:
I don't know how to do it in xcode, however - I've managed to do it using command line tools:
我不知道如何在 xcode 中做到这一点,但是 - 我已经设法使用命令行工具做到了:
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"
回答by Jitesh
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.
我们遇到了同样的问题。我尝试使用 Xcode 6 构建项目并制作存档,然后我转到 XCode 5 的管理器窗口并从那里导出临时构建。它工作正常。
回答by Muhammad Adil
This solution worked for me.
这个解决方案对我有用。
https://stackoverflow.com/a/26497744/1500634
https://stackoverflow.com/a/26497744/1500634
Xcode Version 6.1 TestFlight Version 1.0 (320)
Xcode 6.1 版 TestFlight 1.0 版 (320)
回答by Daniel Arantes Loverde
In my case, i use Unity 5.0.1p1with Vuforia 4.2.3.
So, it have a QCARWrapper.bundleon "Build Phases > Copy Bundle Resources"
就我而言,我将Unity 5.0.1p1与Vuforia 4.2.3 一起使用。
因此,它在“构建阶段>复制捆绑资源”上有一个QCARWrapper.bundle
I delete it, and export. Works!!!
我删除它,然后导出。作品!!!
I do this only for EXPORT FOR AD HOC.
我这样做只是为了EXPORT FOR AD HOC。
Hope this help someone.
希望这有助于某人。
回答by chuckSaldana
Download a previous version of Xcode, I just got the version 4.6.3 and it worked fine so far.
下载以前版本的 Xcode,我刚刚得到了 4.6.3 版本,到目前为止它运行良好。
回答by cdescours
In fact, you need to create a new Distributionprofile, specific for Ad Hoc Deployment. This can be found in the classic member center, but it is a new type of certificate.
实际上,您需要创建一个新的Distribution配置文件,专门用于Ad Hoc Deployment。这个可以在经典会员中心找到,不过是一种新型的证书。
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.
或者,您可以使用 Apple 随 iOS 8 提供的 TestFlight 解决方案,使您的用户能够访问预发布版本。