我已导入框架,用于从后台应用程序发送电子邮件,即SKPSMTPMessageFramework.有人可以建议为什么会出现以下错误
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_SKPSMTPMessage", referenced from:
objc-class-ref in ConfirmController.o
"_kSKPSMTPPartContentTransferEncodingKey", referenced from:
-[ConfirmController sendEmail] in ConfirmController.o
"_kSKPSMTPPartMessageKey", referenced from:
-[ConfirmController sendEmail] in ConfirmController.o
"_kSKPSMTPPartContentTypeKey", referenced from:
-[ConfirmController sendEmail] in ConfirmController.o
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status
Run Code Online (Sandbox Code Playgroud)
采取框架的来源: -
锁定MFMailComposeViewController中的字段
更新:
答:只需将文件夹拖放到项目上,然后单击复制即可.多数民众赞成也选择项目复选框和目标复选框.
我已经合并SpatialIite到一个Xcode项目中,该项目使用头文件Proj.4,只有一个头文件.两者都是Xcode项目并具有静态目标.
我正在尝试从git子模块迁移到Cocoapods.由于静态目标似乎很难与Cocoapods一起使用,我只想以通常的方式构建项目.我做了podspec Proj.4.写完podfile之后SpatialLite我收到了警告:
[!] The target `SpatialiteIOS [Debug]` overrides the `OTHER_LDFLAGS` build setting defined in `Pods/Pods.xcconfig'.
- Use the `$(inherited)` flag, or
- Remove the build settings from the target.
[!] The target `SpatialiteIOS [Debug]` overrides the `HEADER_SEARCH_PATHS` build setting defined in `Pods/Pods.xcconfig'.
- Use the `$(inherited)` flag, or
- Remove the build settings from the target.
[!] The target `SpatialiteIOS [Debug - Release]` overrides the `OTHER_LDFLAGS` build setting defined in `Pods/Pods.xcconfig'.
- …Run Code Online (Sandbox Code Playgroud)