xcode – 在iPhone上运行Ionic 3应用程序会抛出错误:2个重复符号用于架构arm64

xcode – 在iPhone上运行Ionic 3应用程序会抛出错误:2个重复符号用于架构arm64,第1张

概述我正在打开我的Ionic 3项目的.xcworkspace并尝试在我的设备上运行它但是我突然在Xcode中遇到以下错误: Ld /Users/manuel/Library/Developer/Xcode/DerivedData/MyApp-awaxbzztsgokklgptpuoufwcwmkt/Build/Products/Debug-iphoneos/MyApp.app/MyApp norma 我正在打开我的Ionic 3项目的.xcworkspace并尝试在我的设备上运行它但是我突然在Xcode中遇到以下错误:

Ld /Users/manuel/library/Developer/Xcode/DerivedData/MyApp-awaxbzztsgokklgptpuoufwcwmkt/Build/Products/DeBUG-iphoneos/MyApp.app/MyApp normal arm64    cd /Users/manuel/documents/MyApp/dev/copernic4-ion2/galilei/platforms/ios    export IPHONEOS_DEPLOYMENT_TARGET=9.0    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.3.sdk -L/Users/manuel/library/Developer/Xcode/DerivedData/MyApp-awaxbzztsgokklgptpuoufwcwmkt/Build/Products/DeBUG-iphoneos -L/Users/manuel/documents/MyApp/dev/copernic4-ion2/galilei/platforms/ios/MyApp/Plugins/cordova-plugin-Google-analytics -F/Users/manuel/library/Developer/Xcode/DerivedData/MyApp-awaxbzztsgokklgptpuoufwcwmkt/Build/Products/DeBUG-iphoneos -F/Users/manuel/documents/MyApp/dev/copernic4-ion2/galilei/platforms/ios/Pods/Onesignal/iOS_SDK/OnesignalSDK/Framework -FMyApp/Plugins/com.Googlemaps.ios -fileList /Users/manuel/library/Developer/Xcode/DerivedData/MyApp-awaxbzztsgokklgptpuoufwcwmkt/Build/Intermediates/MyApp.build/DeBUG-iphoneos/MyApp.build/Objects-normal/arm64/MyApp.linkfileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -miphoneos-version-min=9.0 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/manuel/library/Developer/Xcode/DerivedData/MyApp-awaxbzztsgokklgptpuoufwcwmkt/Build/Intermediates/MyApp.build/DeBUG-iphoneos/MyApp.build/Objects-normal/arm64/MyApp_lto.o -Xlinker -no_deduplicate -fobjc-arc -fobjc-link-runtime -ObjC -ObjC -framework Onesignal -framework SystemConfiguration -framework UIKit -framework UserNotifications /Users/manuel/library/Developer/Xcode/DerivedData/MyApp-awaxbzztsgokklgptpuoufwcwmkt/Build/Products/DeBUG-iphoneos/libCordova.a -framework Accelerate -framework CoreData -framework CoreLocation -framework CoreText -framework GLKit -framework ImageIO -lc++ -lz -framework OpenGLES -framework QuartzCore -framework SystemConfiguration -framework UIKit -framework GoogleMapsBase -framework GoogleMaps -framework GoogleMapscore -framework EventKit -framework EventKitUI -framework AVFoundation -lGoogleAnalytiCSServices -lAdIDAccess -framework AdSupport -lsqlite3 -weak_framework WebKit -lz -Xlinker -dependency_info -Xlinker /Users/manuel/library/Developer/Xcode/DerivedData/MyApp-awaxbzztsgokklgptpuoufwcwmkt/Build/Intermediates/MyApp.build/DeBUG-iphoneos/MyApp.build/Objects-normal/arm64/MyApp_dependency_info.dat -o /Users/manuel/library/Developer/Xcode/DerivedData/MyApp-awaxbzztsgokklgptpuoufwcwmkt/Build/Products/DeBUG-iphoneos/MyApp.app/MyAppduplicate symbol _OBJC_CLASS_$_CDVLogger in:    /Users/manuel/library/Developer/Xcode/DerivedData/MyApp-awaxbzztsgokklgptpuoufwcwmkt/Build/Intermediates/MyApp.build/DeBUG-iphoneos/MyApp.build/Objects-normal/arm64/CDVLogger.o    /Users/manuel/library/Developer/Xcode/DerivedData/MyApp-awaxbzztsgokklgptpuoufwcwmkt/Build/Products/DeBUG-iphoneos/libCordova.a(CDVLogger.o)duplicate symbol _OBJC_@R_502_6135@CLASS_$_CDVLogger in:    /Users/manuel/library/Developer/Xcode/DerivedData/MyApp-awaxbzztsgokklgptpuoufwcwmkt/Build/Intermediates/MyApp.build/DeBUG-iphoneos/MyApp.build/Objects-normal/arm64/CDVLogger.o    /Users/manuel/library/Developer/Xcode/DerivedData/MyApp-awaxbzztsgokklgptpuoufwcwmkt/Build/Products/DeBUG-iphoneos/libCordova.a(CDVLogger.o)ld: 2 duplicate symbols for architecture arm64clang: error: linker command Failed with exit code 1 (use -v to see invocation)

我不明白什么是重复的……任何帮助都会非常感激.

解决方法 要解决此问题,请查看来自Cordova iOS 4.5的此博客文章.
http://cordova.apache.org/announcements/2017/09/08/ios-release.html

您需要删除在生成新的Ionic项目时默认安装的插件“cordova-plugin-console”.现在这是适用于iOS的cordova的核心部分.

总结

以上是内存溢出为你收集整理的xcode – 在iPhone上运行Ionic 3应用程序会抛出错误:2个重复符号用于架构arm64全部内容,希望文章能够帮你解决xcode – 在iPhone上运行Ionic 3应用程序会抛出错误:2个重复符号用于架构arm64所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://www.outofmemory.cn/web/1066261.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-26
下一篇 2022-05-26

发表评论

登录后才能评论

评论列表(0条)

保存