1. http://iosopendev.com/download/
2. 安裝的過程中,如果出現錯誤的話,可以參考:https://github.com/kokoabim/iOSOpenDev/wiki/Troubleshoot
當然有時候出現的提示不知道是什麼問題的話,可以將以上的問題都FIX下,FIX一個再安裝一下看看,
正如本人在安裝的過程中,出現如下的錯誤:
Jan 28 14:20:30 xxxmatoMacBook installd[2020]: PackageKit: Install Failed: Error Domain=PKInstallErrorDomain Code=112 "An error occurred while running scripts from the package “iOSOpenDev-1.5.pkg”." UserInfo=0x7fc17a5291f0 {NSFilePath=./postinstall, NSURL=file://localhost/Users/xxxx/Downloads/iOSOpenDev-1.5.pkg#iodsetup.pkg, PKInstallPackageIdentifier=com.iosopendev.iosopendev15.iod-setup.pkg, NSLocalizedDescription=An error occurred while running scripts from the package “iOSOpenDev-1.5.pkg”.} { NSFilePath = "./postinstall"; NSLocalizedDescription = "An error occurred while running scripts from the package \U201ciOSOpenDev-1.5.pkg\U201d."; NSURL = "file://localhost/Users/xxxx/Downloads/iOSOpenDev-1.5.pkg#iodsetup.pkg"; PKInstallPackageIdentifier = "com.iosopendev.iosopendev15.iod-setup.pkg"; }
按照 https://github.com/kokoabim/iOSOpenDev/wiki/Troubleshoot 中的Xcode License 問題,FIX下,
1. Download https://github.com/downloads/kokoabim/iOSOpenDev/xcode-license.tar.gz and extract xcode-license out of it.2. Open Terminal, go to the directory where the file was extracted to and run: ./xcode-license
然後重新安裝就可以了。
安裝完,最好重啟下機器。
3.所有方案都試過了,還是有問題的話:
可以給 dev@iosopendev.com 發郵件,別忘了帶上日誌(command + L, 調出日誌)
4.如果編譯的時候出現如下的錯誤:
target specifies product type ‘com.apple.product-type.library.dynamic’, but there’s no such product type for the ‘iphoneos’ platform
可以重啟下機器看看。一般是因為剛安裝完IOS Open-DEV還沒有重啟的緣故。