Xcode 4.5 - Wirelessly build app on my device

后端 未结 1 1893
别跟我提以往
别跟我提以往 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:

    
    
        items
        
            
                assets
                
                    
                        kind
                        software-package
                        url
                        [URL]
                    
                
                metadata
                
                    bundle-identifier
                    com.usaa.FileTransfer
                    bundle-version
                    2.21
                    kind
                    software
                    title
                    File Transfer
                
            
        
    
    
    

    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)
提交回复
热议问题