【问题标题】:Phonegap - Trouble with network plugin and iOS buildPhonegap - 网络插件和 iOS 版本出现问题
【发布时间】:2014-03-20 18:41:56
【问题描述】:

我在 Phonegap 中使用网络信息插件和使用 iOS 构建我的应用程序时遇到问题(它在 Android 上正常工作!)。 如果我尝试在没有网络插件的情况下使用 iOS 构建我的应用程序,它可以正常工作!但是当我安装插件时,在构建过程中,它给了我“检查依赖项错误”。 我使用 Phonegap 3.3.0-0.19.6 版本。我该如何解决这个问题??

这就是我的工作:

1.我只安装了这些插件,我的平台是iOS和Android

sudo phonegap plugin list
[phonegap] org.apache.cordova.geolocation
[phonegap] org.apache.cordova.splashscreen

2.我安装了网络信息插件(从网站下载,因为背后代理)

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.现在一切正常,我继续使用 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 插件添加 org.apache.cordova.network

标签: android ios cordova phonegap-plugins


【解决方案1】:

问题已解决 - 难以置信,但我需要重新创建我的项目并将名称设置为首字母大写。然后一切正常!

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2017-08-06
    • 1970-01-01
    • 1970-01-01
    • 2011-12-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多