我正在为我的移动应用程序项目使用社交共享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)
为什么?
最佳答案
使用以下步骤添加框架作品:
MessageUI.framework
和Social.framework
)