我在我的移动应用程序项目中使用了社交共享phonegap插件。我在建设这个项目时遇到了这个问题。我犯了几个错误。我正在使用这个phonegap插件作为我的社交分享功能。检查https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin。
Undefined symbols for architecture armv7s:
"_SLServiceTypeTwitter", referenced from:
-[SocialSharing shareViaTwitter:] in SocialSharing.o
"_OBJC_CLASS_$_MFMessageComposeViewController", referenced from:
objc-class-ref in SocialSharing.o
"_SLServiceTypeFacebook", referenced from:
-[SocialSharing shareViaFacebook:] in SocialSharing.o
"_OBJC_CLASS_$_SLComposeViewController", referenced from:
objc-class-ref in SocialSharing.o
ld: symbol(s) not found for architecture armv7s
clang: error: linker command failed with exit code 1 (use -v to see invocation)为什么?
发布于 2014-02-24 11:15:57
使用以下步骤添加框架:
MessageUI.framework和Social.framework )发布于 2014-09-29 09:59:52
我也有同样的问题,我遵循了这里提到的步骤:https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin/issues/116
所以,基本上我删除了平台:cordova platform remove ios
然后将其添加回:cordova platform add ios
希望能帮上忙!
https://stackoverflow.com/questions/21985573
复制相似问题