X code ++ 4.5 - 以无线方式建立自己的设备上的应用 [英] Xcode 4.5 - Wirelessly build app on my device

查看:151
本文介绍了X code ++ 4.5 - 以无线方式建立自己的设备上的应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以,最近我的iPhone 4决定停止工作,我不能再使用USB(如果我将它连接到一个USB这是在墙上的电源插座,它会只收连接到我的Mac或PC上,我不得不推30针连接器,而向上插入),但是那是另外一个问题。

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 outlet and I have to push the 30 pin connector upwards while inserting) but that's another issue.

问题是,我不能再构建和测试设备上我的应用程序。
我有我的设备设置与iTunes这样我就可以做一个无线同步。所以,不是测试我的应用我的设备上的电话仍是100%可用其他。

The problem is that I can no longer build and test my app on my device. I have my device set up with iTunes so I can do a wireless sync. So other than testing my apps on my device the phone is still 100% usable.

我在读这等岗位<一个href=\"http://stackoverflow.com/questions/7266391/what-does-the-x$c$c-4-2-$p$pference-support-wirelessly-connected-devices-do\">X$c$c 4.2支持无线连接的设备,这似乎是在谈论建立无线应用到设备上。但他们也说这是在第X code 4.3.1删除。

I was reading this other post Xcode 4.2 Support Wirelessly Connected Devices that seems to be talking about wirelessly building apps onto devices. But they also say it was removed in Xcode 4.3.1.

为/,如果他们正常运作,或我从来没有实际使用此功能在previous X code'S所以我不知道这是什么,他们实际上什么不是。

I've never actually used this feature in previous Xcode's so i'm not sure if that's what they were actually for/if they worked well or what not.

基本上我问如果有人知道的方式来建立无线我的应用程序到我的设备。

Basically i'm asking if anyone knows a way to build my apps wirelessly to my device.

我想我可以建立作出即席发布,把应用程序的文件在我的iTunes和同步还有我的设备,但在这一点上,我宁愿只是借用一个朋友的设备来测试。

I guess I could build make an AdHoc release, put the app file in my iTunes and sync my device there, but at that point I would rather just borrow a friends device to test on.

推荐答案

您当然可以做到这一点。制作自己的应用程序商店:)

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

首先,建立您的应用程序归档(的.ipa)文件。接下来,导出项目plist文件。

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

这应该是这个样子:

<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>

最后:


  1. 确保为[URL]字符串项包含到存档(IPA)的正确路径。

  2. 有一个下载链接到plist文件创建一个小的HTML页面。 (见下文)一定要包括MIME类型如下!

  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!

通过您的iPhone导航到下载链接和安装!

Navigate to that download link via your iPhone and install!

A HREF = ITMS服务://行动=下载舱单和放大器; URL = YOURURLGOESHERE>下载应用

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

MIME类型

application/octet-stream ipa
text/xml plist

如果您尝试在比iPhone以外的其他浏览,你会得到关于不被认可的ITMS协议错误。您可以通过右键单击链接测试这一点您的桌面上,并选择复制快捷方式。粘贴到浏览器的网址,并删除除了你的plist URL位置的一切。这应该启动一个下载你的浏览器,你应该得到的ipa文件(可以uncom preSS和退房)

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)

查找更多信息<一个href=\"http://developer.apple.com/library/ios/#featuredarticles/FA_Wireless_Enterprise_App_Distribution/Introduction/Introduction.html\"相对=nofollow>这里!

这篇关于X code ++ 4.5 - 以无线方式建立自己的设备上的应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆