问题
Is there a way to use URL schemes to open another app (not a common one like maps), without having access to the source code of that app? I'm working for a company that has several apps, and they've tasked me to build another app that will concatenate all of their other apps. If I really need to, I can email my boss and ask about setting up the codes.
If it helps, I'm using XCode 7.3.1, in Swift 2.
By the way, I checked for similar questions, but couldn't find any. If you do find one, send a comment with the link and I'll delete this question if the answers the the other question help.
Thanks in advance!
回答1:
Download the application onto your device (sync to iTunes to get the IPA) or to iTunes. Right click and choose show in explorer or finder.
Now you have the IPA. Change the extension to .zip and unzip it. Open the payload folder.
Go into the application's folder (Right-Click Show Package Contents on OSX).
Open "Info.plist" and look for: URL Types
key. One of the sub-keys in there will open the application.
Update:
- Download the app on any iOS device.
- Plug it into the computer.
- Download Apple Configurator 2 from the Mac Appstore.
Next open apple configurator and right click on your iOS device and press "Add".. then find the app you want to download. Once you find it, double click it and it will tell you that the app is already installed. DO NOT click any of the options on the popup.
Open a terminal and type:
cd ~/Library/Group Containers/K36BKF7T3D.group.com.apple.configurator/Library/Caches/Assets/TemporaryItems/MobileApps/
Then type: open .
to open the directory.. You should now see the .ipa file..
来源:https://stackoverflow.com/questions/37950962/url-schemes-to-personal-apps