Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我一直在尝试将我的 swift 应用程序提交到 appstore,但我遇到了这个错误。这是我第一次使用 alamofire。该应用程序在 ios8 和 ios7 中调试期间运行良好。但我无法将其提交到应用商店。谁能指导我做错了什么?
动态代码执行仅适用于 ios8。所以没有嵌入式框架
alamofire 有一个记录在案的解决方法:
对于不支持嵌入式框架的应用程序目标,例如 iOS 7,可以通过Alamofire.swift直接包含源文件来集成 Alamofire,将顶级类型包装在其中struct Alamofire以模拟命名空间。是的,这很糟糕。
Alamofire.swift
struct Alamofire
所以:将文件复制到您的项目中并忽略框架。然后编辑文件并添加struct Alamofire {...原始内容...和一个}
struct Alamofire {
}