在phonegap上使用sharekit时xcode中出现重复错误(但不使用phonegap-plugin)
我有一个 xcode/phonegap 项目,我想在其中使用 sharekit - 不是作为phonegap-plugin,而是从 Objective-C 代码内部使用,因此不需要实现 sharekit 的phonegap 插件版本。
我导入 sharekit 类并想要编译,但出现错误告诉我可达性类定义了两次:一个在phonegap 内,一个在 sharekit 内。
ld:重复符号 _OBJC_IVAR_$_Reachability.reachabilityRef 中 /Users/Shared/PhoneGap/Frameworks/PhoneGap.framework/PhoneGap 和 /Users/用户名/Library/Developer/Xcode/DerivedData/Appname-cjsfgpsrurmznybczdgqiotrctnm/Build/Intermediates/Appname.build/Debug-iphonesimulator/AppnameID .build/Objects-normal/i386/Reachability.o 用于架构 i386 命令 /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang 失败,退出代码为 1
Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang failed with exit code 1
我怎样才能摆脱这个?
谢谢!
I have a xcode/phonegap project where I want to use the sharekit - not as phonegap-plugin but from inside the objective-c code, so no need to implement the phonegap plugin version of the sharekit.
I import the sharekit classes and want to compile but there is an error telling me that the reachability class is defined twice: one inside phonegap and one inside sharekit.
ld: duplicate symbol _OBJC_IVAR_$_Reachability.reachabilityRef in
/Users/Shared/PhoneGap/Frameworks/PhoneGap.framework/PhoneGap and
/Users/Username/Library/Developer/Xcode/DerivedData/Appname-cjsfgpsrurmznybczdgqiotrctnm/Build/Intermediates/Appname.build/Debug-iphonesimulator/AppnameID
.build/Objects-normal/i386/Reachability.o for architecture i386
Command
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang
failed with exit code 1
Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang failed with exit code 1
how could I get rid of this?
thnx!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我刚刚从 Sharekit 组中删除了 Reachabilty Class Group 并添加
到了 SHK.m
I just deleted the Reachabilty Class Group from the Sharekit Group and added
to the SHK.m