我正在尝试开发一个可以在 iOS 7 上运行的应用程序中运行的 swift SDK,
我不在乎我的 SDK 是否仅在应用程序在 iOS 8 上运行时才起作用,但我不想强制目标应用程序仅在 iOS 上运行。
当我尝试将部署目标更改为 7.0 并将应用程序上传到应用程序商店时,出现以下错误:
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/