首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >ParseFacebookUtilsV4与CocoaPods -“框架未找到用于架构x86_64的分析”

ParseFacebookUtilsV4与CocoaPods -“框架未找到用于架构x86_64的分析”
EN

Stack Overflow用户
提问于 2015-08-14 14:32:13
回答 1查看 1.1K关注 0票数 5

直到今天早些时候,我还在我的ParseFacebookUtilsV4 7+项目中使用1.7.5.3版本。然后,我看到了对Parse框架的更新,更新到了版本1.8.0。pod更新运行顺利,但是当我试图构建应用程序时,它失败了,因为:

代码语言:javascript
运行
复制
Apple Match-O Linker Error
Linker command failed with exit code 1 (use -v to see invocation)

全日志:

代码语言:javascript
运行
复制
Ld /Users/user/Library/Developer/Xcode/DerivedData/ProjectName-amxlttymdgjhvifkgqzpcialrpbs/Build/Products/Debug-iphonesimulator/projectname.target.app/projectname.target normal x86_64
    cd /Users/user/Projetos/projectname.ios
    export IPHONEOS_DEPLOYMENT_TARGET=7.0
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.4.sdk -L/Users/user/Library/Developer/Xcode/DerivedData/ProjectName-amxlttymdgjhvifkgqzpcialrpbs/Build/Products/Debug-iphonesimulator -L/Users/user/Projetos/ProjectName.ios/Pods/GoogleAnalytics/Libraries -L/Users/user/Projetos/ProjectName.ios/Pods/ParseFacebookUtilsV4 -F/Users/user/Library/Developer/Xcode/DerivedData/ProjectName-amxlttymdgjhvifkgqzpcialrpbs/Build/Products/Debug-iphonesimulator -filelist /Users/user/Library/Developer/Xcode/DerivedData/ProjectName-amxlttymdgjhvifkgqzpcialrpbs/Build/Intermediates/ProjectName.build/Debug-iphonesimulator/Target.build/Objects-normal/x86_64/projectname.target.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -objc_abi_version -Xlinker 2 -ObjC -lBolts -lFBSDKCoreKit -lFBSDKLoginKit -lFMDB -lGoogleAnalytics -lJBWhatsAppActivity -lMBProgressHUD -lParse -lParseFacebookUtilsV4 -lParseFacebookUtilsV4Lib -lSDWebImage -lSSZipArchive -lSWRevealViewController -lToast -lUIActivityIndicator-for-SDWebImage -liRate -lsqlite3 -lz -framework AudioToolbox -framework CFNetwork -framework CoreData -framework CoreGraphics -framework CoreLocation -framework ImageIO -framework QuartzCore -framework Security -framework StoreKit -framework SystemConfiguration -weak_framework Accounts -weak_framework AudioToolbox -weak_framework CoreGraphics -weak_framework CoreLocation -weak_framework Foundation -weak_framework QuartzCore -weak_framework Security -weak_framework Social -weak_framework UIKit -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=7.0 -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/user/Library/Developer/Xcode/DerivedData/ProjectName-amxlttymdgjhvifkgqzpcialrpbs/Build/Intermediates/ProjectName.build/Debug-iphonesimulator/Target.build/projectname.target.app.xcent -framework AudioToolbox -framework CFNetwork -framework CoreData -framework CoreGraphics -framework CoreLocation -framework Foundation -framework ImageIO -framework MessageUI -framework MobileCoreServices -framework QuartzCore -framework Security -framework Social -framework SystemConfiguration -framework UIKit -lz.1.1.3 -lz -lPods -Xlinker -dependency_info -Xlinker /Users/user/Library/Developer/Xcode/DerivedData/ProjectName-amxlttymdgjhvifkgqzpcialrpbs/Build/Intermediates/ProjectName.build/Debug-iphonesimulator/Target.build/Objects-normal/x86_64/projectname.target_dependency_info.dat -o /Users/user/Library/Developer/Xcode/DerivedData/ProjectName-amxlttymdgjhvifkgqzpcialrpbs/Build/Products/Debug-iphonesimulator/projectname.target.app/projectname.target

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

我的个人档案:

代码语言:javascript
运行
复制
source 'https://github.com/CocoaPods/Specs.git'

platform :ios, '7.0'
inhibit_all_warnings!

link_with 'Target', 'TargetB'

pod 'FMDB/standalone/FTS', '~> 2.5'
pod 'GoogleAnalytics', '~> 3.0'
pod 'iRate', '~> 1.10'
pod 'JBWhatsAppActivity', '~> 1.0'
pod 'MBProgressHUD', '~> 0.9'
pod 'ParseFacebookUtilsV4', '~> 1.8'
pod 'SDWebImage', '~> 3.7'
pod 'SWRevealViewController', '~> 2.3'
pod 'UIActivityIndicator-for-SDWebImage', '~> 1.2'
pod 'Toast', '~> 2.4'
pod 'SSZipArchive', '~> 0.3.2'

pod 'ParseFacebookUtilsV4', '~> 1.8'加载的依赖项

代码语言:javascript
运行
复制
"Bolts/Tasks": [">= 1.2.0"],
"Parse": ["~> 1.8.0"],
"FBSDKCoreKit": ["~> 4.0"],
"FBSDKLoginKit": ["~> 4.0"]

无论如何,如果我强迫它使用旧版本(pod 'ParseFacebookUtilsV4', '~> 1.7.5'),下面的应用程序就像一个魅力,没有任何错误。加载此podspec的依赖项:

代码语言:javascript
运行
复制
"Bolts/Tasks": [">= 1.2.0"],
"Parse": ["~> 1.7.5.3"],
"FBSDKCoreKit": ["~> 4.0"],
"FBSDKLoginKit": ["~> 4.0"]

这是最新版本的Parse框架的问题吗?我是不是遗漏了什么?

编辑1:当前使用CocoaPods 0.38.2

编辑2:他们刚刚发布了Parse 1.8.1,在Changelog上有这样的消息:“通过Cocoapods作为静态库使用时,via : ParseFacebookUtilsV4和ParseTwitterUtils。”我很快就会测试的。

编辑3: Parse 1.8.1为我解决了这个问题。就是这样,一切都是最新的和正常运转的。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2015-08-20 15:27:51

这似乎是Parse SDK 1.8.0的一个问题,固定在1.8.1版本上。

Changelog (https://www.parse.com/docs/downloads):

V1.8.1 -2015年8月19日新: ParseOSX.framework改名为Parse.framework。特点: PFInstallation现在自动检测和存储当前设备区域设置。改进:原始网络错误(如果有的话)现在存储在NSUnderlyingErrorKey下的error.userInfo中。修正:在返回零个页脚的补充视图时,PFQueryCollectionViewController中可能会崩溃。固定: ParseFacebookUtilsV4和ParseTwitterUtils通过CocoaPods作为静态库使用。固定:通过CocoaPods使用重写的本地化,并作为静态库进行集成。修正: PFObject子类实例变量与_state名称的潜在冲突。修正: PFObject子类上的BOOL属性被视为数字而不是布尔值。修正了:在PFImageView中同时加载映像时可能出现的线程问题。修正:当接收到声音设置为null的推送通知时,可能会崩溃。

我用pod update (pod 'ParseFacebookUtilsV4', '~> 1.8')更新了我的项目,现在一切都正常了。

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

https://stackoverflow.com/questions/32012549

复制
相关文章

相似问题

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