我正在尝试生成Ionic ios应用程序的构建,但是,当我在Xcode中尝试存档时,我收到以下错误:
Ld /Users/huroapps/Library/Developer/Xcode/DerivedData/brazil-cartoon-hjdhkgzminpyprhlbjaopuxmmsve/Build/Intermediates/ArchiveIntermediates/brazil-cartoon/IntermediateBuildFilesPath/brazil-cartoon.build/Release-iphoneos/brazil-cartoon.build/Objects-normal/armv7/brazil-cartoon normal armv7
cd /Users/huroapps/Documents/brazil-cartoon-app/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 armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.2.sdk -L/Users/huroapps/Library/Developer/Xcode/DerivedData/brazil-cartoon-hjdhkgzminpyprhlbjaopuxmmsve/Build/Intermediates/ArchiveIntermediates/brazil-cartoon/BuildProductsPath/Release-iphoneos -F/Users/huroapps/Library/Developer/Xcode/DerivedData/brazil-cartoon-hjdhkgzminpyprhlbjaopuxmmsve/Build/Intermediates/ArchiveIntermediates/brazil-cartoon/BuildProductsPath/Release-iphoneos -F/Users/huroapps/Documents/brazil-cartoon-app/platforms/ios/Pods/OneSignal/iOS_SDK/OneSignalSDK/Framework -Fbrazil-cartoon/Plugins/cordova-plugin-facebook4 -Fbrazil-cartoon/Plugins/cordova-plugin-googleplus -filelist /Users/huroapps/Library/Developer/Xcode/DerivedData/brazil-cartoon-hjdhkgzminpyprhlbjaopuxmmsve/Build/Intermediates/ArchiveIntermediates/brazil-cartoon/IntermediateBuildFilesPath/brazil-cartoon.build/Release-iphoneos/brazil-cartoon.build/Objects-normal/armv7/brazil-cartoon.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -miphoneos-version-min=9.0 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/huroapps/Library/Developer/Xcode/DerivedData/brazil-cartoon-hjdhkgzminpyprhlbjaopuxmmsve/Build/Intermediates/ArchiveIntermediates/brazil-cartoon/IntermediateBuildFilesPath/brazil-cartoon.build/Release-iphoneos/brazil-cartoon.build/Objects-normal/armv7/brazil-cartoon_lto.o -fobjc-arc -fobjc-link-runtime -ObjC -ObjC -framework OneSignal -framework SystemConfiguration -framework UIKit -framework UserNotifications /Users/huroapps/Library/Developer/Xcode/DerivedData/brazil-cartoon-hjdhkgzminpyprhlbjaopuxmmsve/Build/Intermediates/ArchiveIntermediates/brazil-cartoon/BuildProductsPath/Release-iphoneos/libCordova.a -weak_framework ImageIO -framework CoreLocation -framework AVFoundation -framework Bolts -framework FBSDKCoreKit -framework FBSDKLoginKit -framework FBSDKShareKit -framework GoogleAppUtilities -framework GoogleAuthUtilities -framework GoogleNetworkingUtilities -framework GoogleSignIn -framework GoogleSymbolUtilities -framework GoogleUtilities -weak_framework AddressBook -weak_framework CoreText -weak_framework SafariServices -weak_framework Security -weak_framework SystemConfiguration -weak-lz -weak-lz -weak_framework WebKit -weak_framework Social -weak_framework MessageUI -lPods-brazil-cartoon -Xlinker -dependency_info -Xlinker /Users/huroapps/Library/Developer/Xcode/DerivedData/brazil-cartoon-hjdhkgzminpyprhlbjaopuxmmsve/Build/Intermediates/ArchiveIntermediates/brazil-cartoon/IntermediateBuildFilesPath/brazil-cartoon.build/Release-iphoneos/brazil-cartoon.build/Objects-normal/armv7/brazil-cartoon_dependency_info.dat -o /Users/huroapps/Library/Developer/Xcode/DerivedData/brazil-cartoon-hjdhkgzminpyprhlbjaopuxmmsve/Build/Intermediates/ArchiveIntermediates/brazil-cartoon/IntermediateBuildFilesPath/brazil-cartoon.build/Release-iphoneos/brazil-cartoon.build/Objects-normal/armv7/brazil-cartoon
ld: library not found for -lPods-brazil-cartoon
clang: error: linker command failed with exit code 1 (use -v to see invocation)
该应用程序的名称是巴西卡通,它似乎Xcode找不到一些项目文件。我该怎么做才能解决这个问题?
确保你打开.xcworkspace
而不是.xcodeproj
确保安装了CocoaPods
如果您打开.xcworkspace
并安装了CocoaPods,那么尝试导航到终端中的projectName/platforms/ios/
并运行pod install
然后再次构建。