How to get ipa file from Xcode to run an iPhone app in real device?

前端 未结 5 959
小蘑菇
小蘑菇 2020-12-28 08:36

My client asked me to get the review of the app on which I am working. So, I want to get the ipa file and mobile provision file from Xcode 4.2 to share my app to run in real

5条回答
  •  没有蜡笔的小新
    2020-12-28 09:22

    It can be done, in fact I just did it.

    After Xcode 6 you have to go to:

    • Product-->Archive

    • Then wait for it to finish. Then on the screen that pops up right click on your newly created archive-->Show file in finder

    • Then head there with a terminal and run this command on that dir:

    xcodebuild -exportArchive -archivePath .xcarchive -exportPath -exportFormat ipa -exportProvisioningProfile "Name of Provisioning Profile"

    DONE

    For example this command for me was:

    xcodebuild -exportArchive -archivePath ACCESS\ 04-02-16\ 02.21.xcarchive/ -exportPath MyTestApp -exportFormat ipa -exportProvisioningProfile "iOS Team Provisioning Profile: eu.sudoplz.myTestApp"

    This created a MyTestApp.ipa file for me.

提交回复
热议问题