eMd*_*dOS 6 parsing ios cocoapods swift xcode7-beta2
我正在使用Xcode 7 beta,我一直在尝试使用Cocoapods集成Parse iOS SDK.
我已经创建了bridging-header.h,我进口了Parse #import <Parse/Parse.h>.我已经打电话给Parse了AppDelegate.swift.
当我尝试使用与Parse相关的任何类/对象时,会发生错误.实际上,我只是用Parse调用Parse:Parse.setApplicationId(ParseAPI.AppID, clientKey: ParseAPI.ClientKey)
我收到以下错误:
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_Parse", referenced from:
type metadata accessor for ObjectiveC.Parse in AppDelegate.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Run Code Online (Sandbox Code Playgroud)
我已经多次清理了项目,甚至是一个完整的清洁版本.
小智 6
使用Xcode 7 beta 4,我首先通过删除我的XCode项目中对它的所有引用来迁移使用Objective C桥接头.
接下来,我使用顶部的新行更新了我的Podfile:
use_frameworks!
Run Code Online (Sandbox Code Playgroud)
然后我跑了
pod outdated
Run Code Online (Sandbox Code Playgroud)
这告诉我Parse和ParseCrashReporting的更新版本可用(从1.7.5到1.7.5.3).
然后我跑了
pod update
Run Code Online (Sandbox Code Playgroud)
在Xcode中打开我的项目,最后一步是在我使用Parse对象的文件中添加import语句,现在包含了很多文件
import Parse
Run Code Online (Sandbox Code Playgroud)
要么
import ParseCrashReporting
Run Code Online (Sandbox Code Playgroud)
有关use_frameworks的更多信息,请参阅http://www.innerexception.com/2015/05/cocoapods-useframeworks-means-bridging.html
最后,我无法使用 CocoaPods 解决这个问题。
我正在使用Xcode 7.2 beta。
我所做的是,按照Parse Doc中描述的步骤手动导入Parse和Bolts。
目前,我还有其他问题。Xcode 7不会自动完成 中的任何内容bridging-header,一切正常,但不会自动完成。
我不是唯一一个遇到这个问题的人-->参考资料。
| 归档时间: |
|
| 查看次数: |
3452 次 |
| 最近记录: |