从Phonegap 7.0.1升级到7.1.0导致ios构建失败

时间:2018-05-29 00:17:36

标签: cordova phonegap

我正在尝试通过更改config.xml文件中的版本从Phonegap cli-7.0.1升级到Phonegap cli-7.1.0

我在phonegap的ios版本中出现以下错误

  

ld:2个架构arm64的重复符号   clang:错误:链接器命令失败,退出代码为1(使用-v查看调用)

Android版本构建良好。

我正在使用phonegap-plugin-push版本2.0.0,我认为这可能会导致问题。

感谢您解决此问题的任何帮助!

以下是配置文件:

    <?xml version='1.0' encoding='utf-8'?>
    <widget id="com.MyPrivateApp.MyPrivateApp" version="1.0.14" 
    xmlns="http://www.w3.org/ns/widgets" 
    xmlns:cdv="http://cordova.apache.org/ns/1.0">
        <name>MyPrivateApp</name>
        <description>
            MyPrivateApp
        </description>
<author email="support@MyPrivateApp.com" href="http://cordova.io">
    MyPrivateApp LLC
</author>
<content src="index.html" />
<icon src="icon.png" />
<access origin="*" />
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />
<allow-intent href="tel:*" />
<allow-intent href="sms:*" />
<allow-intent href="mailto:*" />
<allow-intent href="geo:*" />
<feature name="http://api.phonegap.com/1.0/camera" />
<feature name="http://api.phonegap.com/1.0/file" />
<platform name="android">
    <resource-file src="google-services.json" target="google-services.json" />
    <preference name="android-minSdkVersion" value="14" />
    <allow-intent href="market:*" />
</platform>
<platform name="ios">
    <resource-file src="GoogleService-Info.plist" />
    <allow-intent href="itms:*" />
    <allow-intent href="itms-apps:*" />
    <preference name="BackupWebStorage" value="none" />
    <icon height="180" src="www/res/icon/ios/icon-60@3x.png" width="180" />
    <icon height="60" src="www/res/icon/ios/icon-60.png" width="60" />
    <icon height="120" src="www/res/icon/ios/icon-60@2x.png" width="120" />
    <icon height="76" src="www/res/icon/ios/icon-76.png" width="76" />
    <icon height="152" src="www/res/icon/ios/icon-76@2x.png" width="152" />
    <icon height="40" src="www/res/icon/ios/icon-40.png" width="40" />
    <icon height="57" src="www/res/icon/ios/icon.png" width="57" />
    <icon height="114" src="www/res/icon/ios/icon@2x.png" width="114" />
    <icon height="72" src="www/res/icon/ios/icon-72.png" width="72" />
    <icon height="144" src="www/res/icon/ios/icon-72@2x.png" width="144" />
    <icon height="58" platform="ios" src="www/res/icon/ios/icon-58.png" width="58" />
    <icon height="87" platform="ios" src="www/res/icon/ios/icon-87.png" width="87" />
    <icon height="1024" platform="ios" src="www/res/icon/ios/icon-1024.png" width="1024" />
</platform>
<preference name="DisallowOverscroll" value="true" />
<plugin name="cordova-plugin-whitelist" spec="~1.2.0" />
<plugin name="cordova-plugin-console" spec="~1.0.1" />
<plugin name="cordova-plugin-statusbar" spec="~1.0.1" />
<plugin name="cordova-plugin-camera" source="npm" spec="~2.4.1">
    <param name="CAMERA_USAGE_DESCRIPTION" value="The application utilized camera function when you take pictures of the goods and services you want to share" />
    <param name="PHOTOLIBRARY_USAGE_DESCRIPTION" value="The application may require access to photo library for you to upload images " />
</plugin>
<preference name="phonegap-version" value="cli-7.1.0" />
<preference name="orientation" value="portrait" />
<plugin name="phonegap-plugin-push" spec="~2.0.0" />
<engine name="browser" spec="~5.0.2" />
<plugin name="cordova-plugin-inappbrowser" spec="~2.0.2" />
    </widget>

1 个答案:

答案 0 :(得分:1)

删除cordova-plugin-console,它已集成到平台中,因此您可以复制类