Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/batch-file/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android cordova插件fcm和ionic platform add ios导致错误代码65_Android_Ios_Firebase_Ionic Framework_Cordova Plugin Fcm - Fatal编程技术网

Android cordova插件fcm和ionic platform add ios导致错误代码65

Android cordova插件fcm和ionic platform add ios导致错误代码65,android,ios,firebase,ionic-framework,cordova-plugin-fcm,Android,Ios,Firebase,Ionic Framework,Cordova Plugin Fcm,我正在使用ionic 1创建一个android/ios应用程序 版本列表 cordova: 7.0.1 ionic: 2.2.2 ios-deploy: 1.9.1 ios-sim: 6.0.0 node: v8.3.0 我使用的插件列表 cordova-plugin-compat 1.1.0 "Compat" cordova-plugin-console 1.0.7 "Console" cordova-plugin-device 1.1.6 "Device" cordova-plugin

我正在使用ionic 1创建一个android/ios应用程序

版本列表

cordova: 7.0.1
ionic: 2.2.2
ios-deploy: 1.9.1 
ios-sim: 6.0.0
node: v8.3.0 
我使用的插件列表

cordova-plugin-compat 1.1.0 "Compat"
cordova-plugin-console 1.0.7 "Console"
cordova-plugin-device 1.1.6 "Device"
cordova-plugin-facebook4 1.7.4 "Facebook Connect"
cordova-plugin-file 4.3.3 "File"
cordova-plugin-file-transfer 1.6.3 "File Transfer"
cordova-plugin-firebase 0.1.24 "Google Firebase Plugin"
cordova-plugin-geolocation 2.4.3 "Geolocation"
cordova-plugin-ignore-lint-translation 0.0.1 "cordova-plugin-ignore-lint-translation"
cordova-plugin-image-picker 1.1.1 "ImagePicker"
cordova-plugin-inappbrowser 1.7.1 "InAppBrowser"
cordova-plugin-splashscreen 4.0.3 "Splashscreen"
cordova-plugin-statusbar 2.2.3 "StatusBar"
cordova-plugin-whitelist 1.3.2 "Whitelist"
cordova.plugins.diagnostic 3.5.0 "Diagnostic"
ionic-plugin-keyboard 2.2.1 "Keyboard"
phonegap-plugin-push 1.10.5 "PushPlugin"
我使用fcm实现了推送通知,使用phonegap插件推送,android推送成功

然而,ios推送不能通过phonegap插件推送工作,所以我安装了一个额外的插件。但在运行时失败

(请注意,在安装其他插件之前,android/ios都成功运行了ionic。)

如果我安装cordova plugin fcm并运行
ionic platform add ios
命令,则会发生以下错误

duplicate symbol _OBJC_METACLASS_$_GtalkSelectiveAck in:
    /Users/pbh/project/frontend/luxlab_front/platforms/ios/Pods/GoogleCloudMessaging/Libraries/libGcmLib.a(GtalkExtensions.pb.o)
    럭스랩/Plugins/cordova-plugin-fcm/FirebaseMessaging.framework/FirebaseMessaging(GtalkExtensions.pb_3df3b2963f0a00a0a06e6bc7758c4642.o)
ld: 33 duplicate symbols for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)


** ARCHIVE FAILED **


The following build commands failed:
    Ld /Users/pbh/Library/Developer/Xcode/DerivedData/럭스랩-frtekduffawmjpcdcfcknnsswolo/Build/Intermediates/ArchiveIntermediates/럭스랩/IntermediateBuildFilesPath/럭스랩.build/Debug-iphoneos/럭스랩.build/Objects-normal/arm64/럭스랩 normal arm64
(1 failure)

Error: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/pbh/project/frontend/luxlab_front/platforms/ios/cordova/build-debug.xcconfig,-workspace,럭스랩.xcworkspace,-scheme,럭스랩,-configuration,Debug,-destination,generic/platform=iOS,-archivePath,럭스랩.xcarchive,archive,CONFIGURATION_BUILD_DIR=/Users/pbh/project/frontend/luxlab_front/platforms/ios/build/device,SHARED_PRECOMPS_DIR=/Users/pbh/project/frontend/luxlab_front/platforms/ios/build/sharedpch
如果我运行安卓系统,我会得到如下错误

:processDebugGoogleServices

Found com.google.android.gms:play-services-gcm:11+, but version 9.0.0 is needed for the google-services plugin.

:processDebugGoogleServices FAILED




FAILURE: Build failed with an exception.

* What went wrong:

Execution failed for task ':processDebugGoogleServices'.

> 
Please fix the version conflict either by updating the version of the google-services plugin (information about the latest version is available at https://bintray.com/android/android-tools/com.google.gms.google-services/) or updating the version of com.google.android.gms to 9.0.0.

* Try:
Run with 
--stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.



BUILD FAILED


Total time: 2.34 secs

Error: /Users/pbh/project/frontend/luxlab_front/platforms/android/gradlew: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':processDebugGoogleServices'.
> Please fix the version conflict either by updating the version of the google-services plugin (information about the latest version is available at https://bintray.com/android/android-tools/com.google.gms.google-services/) or updating the version of com.google.android.gms to 9.0.0.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
我再次尝试使用cordova插件firebase插件。 但它在构建应用程序时也会失败

ionic运行android

/Users/pbh/project/frontend/luxlab_front/platforms/android/res/values/strings.xml: Error: Found item String/google_app_id more than one time

:mergeDebugResources 
FAILED


FAILURE: Build failed with an exception.


* What went wrong:
Execution failed for task ':mergeDebugResources'.

> /Users/pbh/project/frontend/luxlab_front/platforms/android/res/values/strings.xml: Error: Found item String/google_app_id more than one time

* Try:
Run with --stacktrace
 option to get the stack trace. Run with --info or --debug option to get more log output.



BUILD FAILED

Total time: 11.454 secs

Error: /Users/pbh/project/frontend/luxlab_front/platforms/android/gradlew: Command failed with exit code 1 Error output:
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':mergeDebugResources'.
> /Users/pbh/project/frontend/luxlab_front/platforms/android/res/values/strings.xml: Error: Found item String/google_app_id more than one time

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
ionic运行ios

duplicate symbol _OBJC_METACLASS_$_GtalkAppData in:
    /Users/pbh/project/frontend/luxlab_front/platforms/ios/Pods/GoogleCloudMessaging/Libraries/libGcmLib.a(GtalkCore.pb.o)
    럭스랩/Plugins/cordova-plugin-firebase/FirebaseMessaging.framework/FirebaseMessaging(GtalkCore.pbobjc_4adff0f7bd059c687019835bc9c59b23.o)
ld: 42 duplicate symbols for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)


** ARCHIVE FAILED **


The following build commands failed:
    Ld /Users/pbh/Library/Developer/Xcode/DerivedData/럭스랩-frtekduffawmjpcdcfcknnsswolo/Build/Intermediates/ArchiveIntermediates/럭스랩/IntermediateBuildFilesPath/럭스랩.build/Debug-iphoneos/럭스랩.build/Objects-normal/arm64/럭스랩 normal arm64
(1 failure)

Error: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/pbh/project/frontend/luxlab_front/platforms/ios/cordova/build-debug.xcconfig,-workspace,럭스랩.xcworkspace,-scheme,럭스랩,-configuration,Debug,-destination,generic/platform=iOS,-archivePath,럭스랩.xcarchive,archive,CONFIGURATION_BUILD_DIR=/Users/pbh/project/frontend/luxlab_front/platforms/ios/build/device,SHARED_PRECOMPS_DIR=/Users/pbh/project/frontend/luxlab_front/platforms/ios/build/sharedpch
我不知道是什么问题

有人解决过同样的问题吗

这是phonegap插件推送和cordova插件fcm或cordova插件firebase之间的冲突吗?

我解决了这个问题

phonegap插件推送插件和cordova插件fcm插件之间存在冲突

如果我只安装其中一个,上述问题将得到解决。

我解决了此问题

phonegap插件推送插件和cordova插件fcm插件之间存在冲突


如果我只安装其中一个,上述问题将得到解决。

android问题通常通过在android Studio中更新Repistories和Google Play服务并检查路径变量来解决。android问题通常通过在android Studio中更新Repistories和Google Play服务并检查路径变量来解决