ionic 运行 ios 时,引发错误正常 arm64、armv7

Posted

技术标签:

【中文标题】ionic 运行 ios 时,引发错误正常 arm64、armv7【英文标题】:When ionic run ios, raised error normal arm64, armv7 【发布时间】:2017-09-22 14:17:07 【问题描述】:

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

版本列表。

cordova: 7.0.1
ionic: 2.2.2
ios-deploy: 1.9.2
ios-sim: 6.1.2
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-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 2.0.0 "PushPlugin"

问题

ionic ios run 运行正常,但是突然出现如下错误。 我多次删除该平台并再次添加它。它仍然会引发相同的错误。 由于cordova-plugin-facebook4插件和phonegap-plugin-push插件之间的冲突,我经常重新安装几次。有什么问题?

Ld /Users/pbh/Library/Developer/Xcode/DerivedData/럭스랩-frtekduffawmjpcdcfcknnsswolo/Build/Intermediates/ArchiveIntermediates/럭스랩/IntermediateBuildFilesPath/럭스랩.build/Debug-iphoneos/럭스랩.build/Objects-normal/arm64/럭스랩 normal arm64
    cd /Users/pbh/project/frontend/luxlab_front/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:/Users/pbh/.rbenv/shims:/Users/pbh/.rbenv/shims:/Users/pbh/.rbenv/bin:/usr/local/Cellar/pyenv-virtualenv/1.0.0/shims:/usr/local/var/pyenv/shims:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin:/Users/pbh/.scripts:/Users/pbh/Library/Android/sdk/tools:/Users/pbh/Library/Android/sdk/platform-tools:/Users/pbh/.rvm/bin"
    /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/pbh/project/frontend/luxlab_front/platforms/ios/build/device -L/Users/pbh/Library/Developer/Xcode/DerivedData/럭스랩-frtekduffawmjpcdcfcknnsswolo/Build/Intermediates/ArchiveIntermediates/럭스랩/BuildProductsPath/Debug-iphoneos/GoogleToolboxForMac -L/Users/pbh/Library/Developer/Xcode/DerivedData/럭스랩-frtekduffawmjpcdcfcknnsswolo/Build/Intermediates/ArchiveIntermediates/럭스랩/BuildProductsPath/Debug-iphoneos/Protobuf -L/Users/pbh/Library/Developer/Xcode/DerivedData/럭스랩-frtekduffawmjpcdcfcknnsswolo/Build/Intermediates/ArchiveIntermediates/럭스랩/BuildProductsPath/Debug-iphoneos/nanopb -F/Users/pbh/project/frontend/luxlab_front/platforms/ios/build/device -F/Users/pbh/project/frontend/luxlab_front/platforms/ios/Pods/FirebaseAnalytics/Frameworks -F/Users/pbh/project/frontend/luxlab_front/platforms/ios/Pods/FirebaseCore/Frameworks -F/Users/pbh/project/frontend/luxlab_front/platforms/ios/Pods/FirebaseInstanceID/Frameworks -F/Users/pbh/project/frontend/luxlab_front/platforms/ios/Pods/FirebaseMessaging/Frameworks -F럭스랩/Plugins/cordova-plugin-facebook4 -filelist /Users/pbh/Library/Developer/Xcode/DerivedData/럭스랩-frtekduffawmjpcdcfcknnsswolo/Build/Intermediates/ArchiveIntermediates/럭스랩/IntermediateBuildFilesPath/럭스랩.build/Debug-iphoneos/럭스랩.build/Objects-normal/arm64/럭스랩.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -miphoneos-version-min=9.0 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/pbh/Library/Developer/Xcode/DerivedData/럭스랩-frtekduffawmjpcdcfcknnsswolo/Build/Intermediates/ArchiveIntermediates/럭스랩/IntermediateBuildFilesPath/럭스랩.build/Debug-iphoneos/럭스랩.build/Objects-normal/arm64/럭스랩_lto.o -Xlinker -no_deduplicate -Xlinker -final_output -Xlinker /Applications/럭스랩.app/럭스랩 -fobjc-arc -fobjc-link-runtime -ObjC -ObjC -lGoogleToolboxForMac -lProtobuf -lc++ -lnanopb -lsqlite3 -lz -framework AddressBook -framework FirebaseAnalytics -framework FirebaseCore -framework FirebaseCoreDiagnostics -framework FirebaseInstanceID -framework FirebaseMessaging -framework FirebaseNanoPB -framework StoreKit -framework SystemConfiguration -ObjC -lGoogleToolboxForMac -lProtobuf -lc++ -lnanopb -lsqlite3 -lz -framework AddressBook -framework FirebaseAnalytics -framework FirebaseCore -framework FirebaseCoreDiagnostics -framework FirebaseInstanceID -framework FirebaseMessaging -framework FirebaseNanoPB -framework StoreKit -framework SystemConfiguration /Users/pbh/project/frontend/luxlab_front/platforms/ios/build/device/libCordova.a -lz -framework Bolts -framework FBSDKCoreKit -framework FBSDKLoginKit -framework FBSDKShareKit -framework CoreLocation -framework CoreBluetooth -framework CoreMotion -framework AVFoundation -framework Photos -framework AddressBook -framework EventKit -framework Contacts -framework UserNotifications -Xlinker -dependency_info -Xlinker /Users/pbh/Library/Developer/Xcode/DerivedData/럭스랩-frtekduffawmjpcdcfcknnsswolo/Build/Intermediates/ArchiveIntermediates/럭스랩/IntermediateBuildFilesPath/럭스랩.build/Debug-iphoneos/럭스랩.build/Objects-normal/arm64/럭스랩_dependency_info.dat -o /Users/pbh/Library/Developer/Xcode/DerivedData/럭스랩-frtekduffawmjpcdcfcknnsswolo/Build/Intermediates/ArchiveIntermediates/럭스랩/IntermediateBuildFilesPath/럭스랩.build/Debug-iphoneos/럭스랩.build/Objects-normal/arm64/럭스랩

ld: warning: directory not found for option '-L/Users/pbh/Library/Developer/Xcode/DerivedData/럭스랩-frtekduffawmjpcdcfcknnsswolo/Build/Intermediates/ArchiveIntermediates/럭스랩/BuildProductsPath/Debug-iphoneos/GoogleToolboxForMac'
ld: warning: directory not found for option '-L/Users/pbh/Library/Developer/Xcode/DerivedData/럭스랩-frtekduffawmjpcdcfcknnsswolo/Build/Intermediates/ArchiveIntermediates/럭스랩/BuildProductsPath/Debug-iphoneos/Protobuf'
ld: warning: directory not found for option '-L/Users/pbh/Library/Developer/Xcode/DerivedData/럭스랩-frtekduffawmjpcdcfcknnsswolo/Build/Intermediates/ArchiveIntermediates/럭스랩/BuildProductsPath/Debug-iphoneos/nanopb'
ld: library not found for -lGoogleToolboxForMac
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/armv7/럭스랩 normal armv7
    Ld /Users/pbh/Library/Developer/Xcode/DerivedData/럭스랩-frtekduffawmjpcdcfcknnsswolo/Build/Intermediates/ArchiveIntermediates/럭스랩/IntermediateBuildFilesPath/럭스랩.build/Debug-iphoneos/럭스랩.build/Objects-normal/arm64/럭스랩 normal arm64
(2 failures)

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

【问题讨论】:

【参考方案1】:

这是一个常见的问题。

phonegap-plugin-push 文档中记录了此问题的解决方案。

https://github.com/phonegap/phonegap-plugin-push/blob/master/docs/INSTALLATION.md#bitcode

【讨论】:

以上是关于ionic 运行 ios 时,引发错误正常 arm64、armv7的主要内容,如果未能解决你的问题,请参考以下文章

更新到 IOS 11 后在 IOS 模拟器上运行错误 - Ionic 3

运行“ionic cordova platform add ios”时出错

带有扩展名的应用程序的 Ionic/Cordova iOS 应用程序构建错误 - ** 存档失败 **

Ionic 构建/运行 ios 失败,错误代码为 65。如何修复?

运行 ionic ios build --prod --release 时出错

Ionic 4 在 iOS 设备上运行应用程序时出现电容器错误