xcode 使用(临时)导出 IPA 进行测试,而不是 Appstore

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/47036056/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 10:23:46  来源:igfitidea点击:

Export IPA for Testing instead Appstore with (ad-hoc)

iosiphonexcodeipa

提问by Vende Achat

  1. i'm create All Devices in (3 iphone + 1 ipad) Developer Apple account

  2. i'm Generate certificate inf Developer Appleand i'm selected all device in this certificate

  3. i'm download certificate and Generate in xcode . everything is good now
  4. when i'm click in Build sitting => signin =>Provisioning Profile=> its show this message :
  1. 我在 (3 iphone + 1 ipad) Developer Apple 帐户中创建所有设备

  2. 我是在Apple Developer 中生成证书,我在此证书中选择了所有设备

  3. 我正在下载证书并在 xcode 中生成。现在一切都很好
  4. 当我点击构建坐 => 登录 => 配置文件 => 显示此消息时:

The UUID of a valid provisioning profile. A missing or invalid profile will cause a build error (deprecated, use [PROVISIONING_PROFILE_SPECIFIER] instead).

有效配置文件的 UUID。缺少或无效的配置文件将导致构建错误(已弃用,请改用 [PROVISIONING_PROFILE_SPECIFIER])。

  1. however i'm exporte IPA with ad-hoc

    and i'm see the code i'm change Myapp.ipa to Myapp.zip for lock the code that what i'm se is there the all provisioning profile in the certificate

    <string>iOS Team Provisioning Profile: com.myApp.name</string>
    <key>ProvisionedDevices</key>
    <array>
        <string>653125008b5277640d4f640ab94241a4</string>
        <string>h5856dd83f2e34952cae17eb849736ef6</string>
        <string>945a65b488deb77903ab9cc335bc2a9b0</string>
        <string>6654f70cc52dab5c371c22b63e200e916</string>
    </array>
    
  2. when i'm add the ipa to my IPhone or IPad is not installe is give me erore so what is wrong ?

  1. 但是我是临时导出 IPA

    我看到了代码,我将 Myapp.ipa 更改为 Myapp.zip 以锁定代码,即我所看到的是证书中的所有配置文件

    <string>iOS Team Provisioning Profile: com.myApp.name</string>
    <key>ProvisionedDevices</key>
    <array>
        <string>653125008b5277640d4f640ab94241a4</string>
        <string>h5856dd83f2e34952cae17eb849736ef6</string>
        <string>945a65b488deb77903ab9cc335bc2a9b0</string>
        <string>6654f70cc52dab5c371c22b63e200e916</string>
    </array>
    
  2. 当我将 ipa 添加到我的 iPhone 或未安装 iPad 时,会给我一个错误,所以有什么问题?

Thnak you for your time to reading all this :)

谢谢你花时间阅读所有这些:)

回答by LinusGeffarth

Make sure you've followed all these steps, then you should be good to go.
Give it a try and let me know!

确保您已遵循所有这些步骤,然后就可以开始了。
试一试,让我知道!

On developer.apple.com:

在 developer.apple.com 上:

  1. navigate to your account & login
  2. click Certificates, IDs & Profilesin the side menu on the left
  3. on the left, find Devices& click +
  4. register multiple devices by uploading a spreadsheet including the UDIDs and names of the devices
  5. follow the steps to finalize the registration process
  1. 导航到您的帐户并登录
  2. 单击左侧侧边菜单中的证书、ID 和配置文件
  3. 在左侧,找到设备并单击+
  4. 通过上传包含设备的 UDID 和名称的电子表格来注册多个设备
  5. 按照步骤完成注册过程

You might need to wait 24 hours; I found, it sometimes takes really long for the changes to take effect.

您可能需要等待 24 小时;我发现,有时更改生效需要很长时间。

Inside Xcode:

Xcode内部:

  1. prep: open Xcode settings, accounts, your account and then re-download all the profiles and certificates
  2. archive the product
  3. open the Organizer window and find the archive you've just created
  4. click Distribute App
  5. choose Ad-Hoc
  6. make sure to have include manifest for OTA installationenabled
  7. follow the steps
  8. finally, click exportand choose a location to save the files
  1. 准备:打开Xcode设置,帐户,您的帐户,然后重新下载所有配置文件和证书
  2. 归档产品
  3. 打开管理器窗口并找到您刚刚创建的存档
  4. 单击分发应用程序
  5. 选择Ad-Hoc
  6. 确保已启用OTA 安装清单
  7. 按照步骤
  8. 最后,单击导出并选择一个位置来保存文件

Upload all the files (icons, .plist & .ipa) to your server. Note that the server needs to be https, this ismandatory. If your's isn't, upload it to Dropbox or some other cloud service. If you're using Dropbox, make sure to replace www.dropbox.comwith dl.dropboxusercontent.com.

将所有文件(图标、.plist 和 .ipa)上传到您的服务器。请注意,服务器需要是https,这强制性的。如果不是,请将其上传到 Dropbox 或其他一些云服务。如果您使用的是 Dropbox,请确保替换www.dropbox.comdl.dropboxusercontent.com.

Manifest

显现

  1. open the manifest.plistfile and insert all the new urls
    • again, for dropbox: replace www.dropbox.comwith dl.dropboxusercontent.com
  2. upload the manifest plist to a secure server.
  1. 打开manifest.plist文件并插入所有新网址
    • 再次,对于保管箱:替换www.dropbox.comdl.dropboxusercontent.com
  2. 将清单 plist 上传到安全服务器。

Link:

关联:

itms-services://?action=download-manifest&url=https://dl.dropboxusercontent.com/s/YourURLHere/manifest.plist


Taken from here.

取自这里

回答by Ketan Parmar

You should use automatically manage signing.

你应该使用automatically manage signing.

For that you should select your team.

为此,您应该选择您的团队。

In navigatorclick on your project name - under targets - you will find signing section.

navigator点击您的项目名称-下目标-你会发现签名部分。

In that check the checkbox for automatically manage signingand select your team. If you have not any team available then you can add it from Preferencesof your xcode-> Accounts-> +-> add your apple developer id and password.

在该复选框中选中automatically manage signing并选择您的团队。如果你没有任何可用的团队,那么你可以从Preferences你的xcode-> Accounts-> +-> 添加你的苹果开发者 ID 和密码来添加它。

After selecting team it will automatically create provisioning profile if your developer account includes your bundle id!

选择团队后,如果您的开发者帐户包含您的捆绑包 ID,它将自动创建配置文件!

Make sure your device is connected with xcode!

确保您的设备已与 xcode 连接!

回答by Marcin Czerkies

When I exporting to ad-hoc, I created a simple WEB with manifest file. This file will generated automatically when you exporting app to AD-HOC. Thanks this web site you can install app from internet.

当我导出到 ad-hoc 时,我用清单文件创建了一个简单的 WEB。当您将应用程序导出到 AD-HOC 时,将自动生成此文件。感谢这个网站,您可以从互联网上安装应用程序。

Sample code for WEB:

WEB示例代码:

<html>
<a style="font-size:48px;margin-top:150px;margin-left:250px;float:left;color:#22788D;" 
href="itms-services://?action=download-manifest&amp; url=https://yourAppServer/manifest.plist">Install your APP </a>
</html>


Sample of Manifest.plist

Manifest.plist 示例

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>items</key>
    <array>
        <dict>
            <key>assets</key>
            <array>
                <dict>
                    <key>kind</key>
                    <string>software-package</string>
                    <key>url</key>
                    <string>https://yourServercom/YourApp.ipa</string>
                </dict>
                <dict>
                    <key>kind</key>
                    <string>display-image</string>
                    <key>url</key>
                    <string>https://yourServercom/Icon.png</string>
                </dict>
                <dict>
                    <key>kind</key>
                    <string>full-size-image</string>
                    <key>url</key>
                    <string>https://yourServercom/iTunesArtwork.png</string>
                </dict>
            </array>
            <key>metadata</key>
            <dict>
                <key>bundle-identifier</key>
                <string>UserAPP.YourApp</string>
                <key>bundle-version</key>
                <string>1.0</string>
                <key>kind</key>
                <string>software</string>
                <key>title</key>
                <string>YourApp</string>
            </dict>
        </dict>
    </array>
</dict>
</plist>

It works perfectly for me.

它非常适合我。

Good luck!

祝你好运!