Xcode 4.5 - Wirelessly build app on my device

后端 未结 1 1892
别跟我提以往
别跟我提以往 2020-12-24 11:19

So recently my iPhone 4 decided to stop working and I can no longer connect it to my Mac or PC with a USB (it\'ll only charge if I connect it to a USB that\'s in a wall outl

相关标签:
1条回答
  • 2020-12-24 11:56

    You can certainly do this. Make your own app store :)

    First, build your app to an archive (.IPA) file. Next, export your project PLIST file.

    This should look something like this:

    <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>[URL]</string>
                    </dict>
                </array>
                <key>metadata</key>
                <dict>
                    <key>bundle-identifier</key>
                    <string>com.usaa.FileTransfer</string>
                    <key>bundle-version</key>
                    <string>2.21</string>
                    <key>kind</key>
                    <string>software</string>
                    <key>title</key>
                    <string>File Transfer</string>
                </dict>
            </dict>
        </array>
    </dict>
    </plist>
    

    Finally:

    1. Ensure that the string entry for [URL] contains the correct path to your archive (IPA).
    2. Create a small HTML page with a download link to that plist file. (see below) Be sure to include the mime-types below!

    3. Navigate to that download link via your iPhone and install!

      a href=itms-services://?action=download-manifest&url=YOURURLGOESHERE>Download App

    MIME Types

    application/octet-stream ipa
    text/xml plist
    

    If you try to navigate on anything other than an iPhone you will get an error about the itms protocol not being recognized. You can test this out on your desktop by right clicking the link, and select copy shortcut. Paste into the url browser, and remove the everything except your plist URL location. This should kick off a download on you browser and you should receive the ipa file (which you can uncompress and check out)

    Find more info here!

    0 讨论(0)
提交回复
热议问题