首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Nativescript角

Nativescript角
EN

Stack Overflow用户
提问于 2018-09-14 04:17:18
回答 2查看 1.1K关注 0票数 0

我已经用带有角度的NativeScript开发了一个应用程序,我可以在模拟器上运行它,但是当我在XCode中打开这个项目并尝试创建归档文件时,我在Apple O Linker下面得到了下面的内容

代码语言:javascript
复制
Ld /Users/developer/Library/Developer/Xcode/DerivedData/userapp-gjxlejnimwmihjbtipwhycprittu/Build/Intermediates.noindex/ArchiveIntermediates/userapp/IntermediateBuildFilesPath/userapp.build/Release-iphoneos/userapp.build/Objects-normal/armv7/userapp normal armv7
cd /Mobile/360-id/userapp/platforms/ios
export IPHONEOS_DEPLOYMENT_TARGET=8.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/iPhoneOS11.2.sdk -L/Users/developer/Library/Developer/Xcode/DerivedData/userapp-gjxlejnimwmihjbtipwhycprittu/Build/Intermediates.noindex/ArchiveIntermediates/userapp/BuildProductsPath/Release-iphoneos -F/Users/developer/Library/Developer/Xcode/DerivedData/userapp-gjxlejnimwmihjbtipwhycprittu/Build/Intermediates.noindex/ArchiveIntermediates/userapp/BuildProductsPath/Release-iphoneos -F/Mobile/360-    id/userapp/platforms/ios/Pods/FirebaseAnalytics/Frameworks -F/Mobile/360-id/userapp/platforms/ios/Pods/FirebaseInstanceID/Frameworks -F/Mobile/360-id/userapp/platforms/ios/Pods/GoogleSignIn/Frameworks -F/Mobile/360-id/userapp/platforms/ios/internal -F/Mobile/360-id/userapp/platforms/ios/../../node_modules/nativescript-plugin-firebase/platforms/ios -F/Mobile/360-id/userapp/platforms/ios/../../node_modules/tns-core-modules-widgets/platforms/ios -filelist /Users/developer/Library/Developer/Xcode/DerivedData/userapp-gjxlejnimwmihjbtipwhycprittu/Build/Intermediates.noindex/ArchiveIntermediates/userapp/IntermediateBuildFilesPath/userapp.build/Release-iphoneos/userapp.build/Objects-normal/armv7/userapp.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -Xlinker -rpath -Xlinker @executable_path/Frameworks -miphoneos-version-min=8.0 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/developer/Library/Developer/Xcode/DerivedData/userapp-gjxlejnimwmihjbtipwhycprittu/Build/Intermediates.noindex/ArchiveIntermediates/userapp/IntermediateBuildFilesPath/userapp.build/Release-iphoneos/userapp.build/Objects-normal/armv7/userapp_lto.o -Xlinker -final_output -Xlinker /Applications/userapp.app/userapp -fobjc-arc -fobjc-link-runtime -ObjC -lc++ -licucore -lsqlite3 -lstdc++ -lz -framework BEMCheckBox -framework Bolts -framework CFNetwork -framework CoreText -framework FBSDKCoreKit -framework FBSDKLoginKit -framework FirebaseAnalytics -framework FirebaseAuth -framework FirebaseCore -framework FirebaseCoreDiagnostics -framework FirebaseDatabase -framework FirebaseInstanceID -framework FirebaseNanoPB -framework FirebaseStorage -framework Foundation -framework GTMOAuth2 -framework GTMSessionFetcher -framework GoogleSignIn -framework GoogleToolboxForMac -framework IQKeyboardManager -framework MobileCoreServices -framework QBImagePickerController -framework SafariServices -framework Security -framework StoreKit -framework SwiftyCam -framework SystemConfiguration -framework TesseractOCR -framework leveldb -framework nanopb -ObjC -sectcreate __DATA __TNSMetadata /Users/developer/Library/Developer/Xcode/DerivedData/userapp-gjxlejnimwmihjbtipwhycprittu/Build/Intermediates.noindex/ArchiveIntermediates/userapp/BuildProductsPath/Release-iphoneos/metadata-armv7.bin -framework NativeScript -F/Mobile/360-id/userapp/platforms/ios/internal -licucore -lz -lc++ -framework Foundation -framework UIKit -framework CoreGraphics -framework MobileCoreServices -framework Security -framework TNSMLKitCamera -framework TNSWidgets -framework Pods_userapp -Xlinker -dependency_info -Xlinker /Users/developer/Library/Developer/Xcode/DerivedData/userapp-gjxlejnimwmihjbtipwhycprittu/Build/Intermediates.noindex/ArchiveIntermediates/userapp/IntermediateBuildFilesPath/userapp.build/Release-iphoneos/userapp.build/Objects-normal/armv7/userapp_dependency_info.dat -o /Users/developer/Library/Developer/Xcode/DerivedData/userapp-gjxlejnimwmihjbtipwhycprittu/Build/Intermediates.noindex/ArchiveIntermediates/userapp/IntermediateBuildFilesPath/userapp.build/Release-iphoneos/userapp.build/Objects-normal/armv7/userapp

ld: framework not found BEMCheckBox
clang: error: linker command failed with exit code 1 (use -v to see invocation)

这些是我的package.json文件中的依赖项

代码语言:javascript
复制
"dependencies": {
    "@angular/animations": "~5.2.0",
    "@angular/common": "~5.2.0",
    "@angular/compiler": "~5.2.0",
    "@angular/core": "~5.2.0",
    "@angular/forms": "~5.2.0",
    "@angular/http": "~5.2.0",
    "@angular/platform-browser": "~5.2.0",
    "@angular/platform-browser-dynamic": "~5.2.0",
    "@angular/router": "~5.2.0",
    "@nstudio/nativescript-camera-plus": "^1.0.6",
    "email-validator": "^1.1.1",
    "nativescript-angular": "~5.2.0",
    "nativescript-appversion": "^1.4.1",
    "nativescript-camera": "^4.0.1",
    "nativescript-checkbox": "^3.0.3",
    "nativescript-drop-down": "^3.2.4",
    "nativescript-iqkeyboardmanager": "^1.3.0",
    "nativescript-ocr": "^1.0.0",
    "nativescript-plugin-firebase": "^6.0.2",
    "nativescript-theme-core": "~1.0.4",
    "reflect-metadata": "~0.1.8",
    "rxjs": "~5.5.2",
    "tns-core-modules": "~3.4.0",
    "ts-md5": "^1.2.4",
    "xmldom": "^0.1.27",
    "xpath": "0.0.27",
    "zone.js": "~0.8.18"
},
"devDependencies": {
    "nativescript-dev-typescript": "~0.6.0",
    "typescript": "~2.6.2"
}

有人能帮助确定问题的原因吗?我在XCode 10.13.3上运行MacOS 9.2

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2018-09-14 13:03:34

尝试使用tns platform clean ios清除平台并更新cocoapods。BEMCheckBox是通过installed复选框插件使用podfile安装的,如果不清除平台,就不可能复制。您也可以尝试tns plugin remove nativescript-checkbox && tns plugin add nativescript-checkbox

票数 1
EN

Stack Overflow用户

发布于 2018-09-14 05:10:01

看起来这是你的问题,ld: framework not found BEMCheckBox。您缺少了项目中的框架BEMCheckBox,这会导致构建失败。

有关如何安装框架,请查看https://github.com/Boris-Em/BEMCheckBox#installation。如果您不确定如何安装它,请查看CocoaPods (https://guides.cocoapods.org/using/using-cocoapods)。它是安装和管理框架的一个很好的工具。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/52324909

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档