1
我在使用網絡信息插件和使用iOS構建我的應用的Phonegap中遇到問題(它在Android上正常工作!)。 如果我嘗試使用iOS構建我的應用程序並且沒有網絡插件,那麼它工作正常!但是當我在安裝過程中安裝插件時,它給了我「檢查依賴性錯誤」。 我使用Phonegap 3.3.0-0.19.6版本。我該如何解決這個問題?Phonegap - 網絡插件和iOS版本的問題
這是我做的:
1.I只安裝這些插件和我的平臺是iOS和Android
sudo phonegap plugin list
[phonegap] org.apache.cordova.geolocation
[phonegap] org.apache.cordova.splashscreen
2.I安裝網絡信息插件(從網站上下載的,因爲後面代理)
sudo phonegap local plugin add /Users/admin/Downloads/cordova-plugin-network-information
[phonegap] adding the plugin: /Users/admin/Downloads/cordova-plugin-network-information
[phonegap] successfully added the plugin
3.Now這一切都OK,我開始與Android建立,並能正常工作......
sudo phonegap build android
[phonegap] detecting Android SDK environment...
[phonegap] using the local environment
[phonegap] compiling Android...
[phonegap] successfully compiled Android app
4.但是當我嘗試構建iOS時,它給了我檢查依賴性錯誤!
sudo phonegap build ios
[phonegap] detecting iOS SDK environment...
[phonegap] using the local environment
[phonegap] compiling iOS...
[error] An error occurred while building the ios project.** BUILD FAILED **
The following build commands failed:
Check dependencies
(1 failure)
** BUILD FAILED **
試試這個$ cordova plugin add org.apache.cordova.network –