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