ios - 我可以在 iOS 7 上运行的应用程序中使用 swift sdk 吗?

标签 ios xcode swift ios7 sdk

我正在尝试开发一个可以在 iOS 7 上运行的应用程序中运行的 swift SDK,
我不在乎我的 SDK 是否仅在应用程序在 iOS 8 上运行时才起作用,但我不想强制目标应用程序仅在 iOS 上运行。

当我尝试将部署目标更改为 7.0 并将应用程序上传到应用程序商店时,出现以下错误:

Upload errors

Archive submission failed with errors:
! ERROR 'TMS-90362: "Invalid Info.plist value. The value for the key •MinimumOSVersion• in bundle MiniAppDemo.app/Frameworks/ MiniAppFramework.framework is invalid. The minimum value is 8.0"
ERROR IT MS-90362: "Invalid Info.plist value. The value for the key 'MinimumOSVersion' in bundle MiniAppDemo.app/Frameworks/MiniAppFramework.framework is invalid. The minimum value is 8.0" ERROR ITMS-9020g: "Invalid Segment Alignment. The app binary at 'MiniAppDemo.app/Frameworks/MiniAppFramework.frameworW MiniAppFrameworkl does not have proper segment alignment. Try rebuilding the app with the latest Xcode version." ERROR IT MS-90209: •Invalid Segment Alignment. The app binary at 'MiniAppDemo.app/FrameworksWiniAppFramework.frameworWMiniAppFramework' does not have proper segment alignment. Try rebuilding the app with the latest Xcode version." ERROR 'TMS-90125: "The binary is invalid. The encryption info in the LC ENCRYPTION INFO load command is either missing or invalid, or the binary is already encrypted. This binary does not seem to have been built with Apple's linker." ERROR ITMS-g012S: •The binary is invalid. The encryption info in the load command is either missing or invalid, or the binary is already encrypted. This binary does not seem to have been built with Apple's linker. • WARNING ITMS-900BO•. "The executable 'Payload/MiniAppDemo.app/Frameworks/MiniAppFramework.framework' is not a Position Independent Executable. Please ensure that your build settings are configured to create PIE executables. For more information refer to Technical Q&A QA178B - Building a Position Independent Executable in the iOS Developer Library." WARNING IT MS-90080: 'The executable 'Payload/MiniAppDemo.app/Frameworks/MiniAppFramework.framevvork' is not a Position Independent Executable. Please ensure that your build settings are configured to create PIE executables. For more information refer to Technical Q&A QAI 788 - Building a Position Independent Executable in the iOS Developer Done Library. "

最佳答案

检查Alamofire对于同一问题:

“嵌入式框架要求最低部署目标为 iOS 8 或 OS X Mavericks。

要将 Alamofire 与面向 iOS 7 的项目结合使用,您必须将位于源目录内的所有 Swift 文件直接包含在您的项目中。请参阅“源文件”部分以获取更多说明。”

关于ios - 我可以在 iOS 7 上运行的应用程序中使用 swift sdk 吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30455600/

相关文章:

objective-c - RestKit 破坏了存档模式下的构建 - Xcode 8

swift - 为 GMSMarker 设置自定义 accessibilityIdentifier

iphone - 游戏中心即使没有 iTunes 连接

xcode - 用两个 iOS 项目打开两个窗口

ios - [FIRApp configure] 是否在 iOS 上以 DEBUG 模式发送统计信息?

swift - 是否可以在 Xcode 的 swift 文档中使用图像?

ios - 自调整单元格高度变化导致跳跃动画

ios - 在 iOS block 和队列中运行多个任务的最佳实践是什么?

ios - UIViewController 中的 UISearchBar

iOS 9 应用程序支持在 App Store 中发布应用程序