itms-services IPA wireless distribution link not working

谁说胖子不能爱 提交于 2019-12-11 12:07:27

问题


I'm trying to get an IPA downloadable through a website. From reading around I see this is done itms-services.

My issue is my link in php is not working - I have a feeling it's down to the syntax but i can't figure it out. I tried url encoding etc but no luck.

Any ideas?

echo '<a href="itms-services://?action=download-manifest&url=http://localhost:8888/hockey/hockey/appname_type/info.plist">Click here to donwnload</a></br>';

回答1:


This is what Apple answers themselves on this question:

Yes, the itms:// type links don't work in the simulator.




回答2:


I "think" the URL must now be HTTPS vs HTTP, per Apple security change.




回答3:


You'll need to url encode just the url. So instead of

http://localhost:8888/hockey/hockey/appname_type/info.plist

you use this

http%3A%2F%2Flocalhost%3A8888%2Fhockey%2Fhockey%2Fappname_type%2Finfo.plist




回答4:


Is your url to your ipa-file in the info.plist correct? It needs to be the absolute url, f.e.

<key>url</key> <string>http://localhost:8888/hockey/hockey/appname_type/info.ipa</string>

and it shouldn't be in a .htpasswd secured directory.




回答5:


Unless you are running a jailbroken iOS device that's got it's own web server, a localhost url will notwork. I suspect your localhost reference works in Safari on your mac because it is running a web server that is serving up the files.

You'll need to specify the IP address for the Mac in your link, like

<a href="itms-services://?action=download-manifest&url=http://192.168.0.100:8888/hockey/hockey/appname_type/info.plist">Click here to donwnload</a></br>';

but replace 192.168.0.100 with the IP address of your Mac.

Note that this won't work in the simulator, since you cannot install apps through the itms-services



来源:https://stackoverflow.com/questions/20225362/itms-services-ipa-wireless-distribution-link-not-working

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!