【发布时间】:2015-02-04 07:46:42
【问题描述】:
我正在用 Swift 编写一个 iOS 应用程序。 该应用程序很简单,只是一个连接到 URL 的 UIWebView。
class ViewController: UIViewController {
@IBOutlet weak var customWebView: UIWebView!
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
if let url = NSURL(string: "http://A_COUNTRY_URL") {
let request = NSURLRequest(URL: url)
customWebView.loadRequest(request)
}
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}
}
- 我想将它保存在一个存储库(一个项目)中
- http://A_COUNTRY_URL 用于分发到 A 国家/地区的 .ipa
- 还有另一个国家B需要分发,地址是http://B_COUNTRY_URL
- 两个不同的 .ipa 应该有两个不同的Bundle ID
是否可以在 Xcode 上为一个项目构建两个不同的 .ipa? 如果是,该怎么做?
提前致谢。 埃里克
【问题讨论】:
-
是的。您可以为同一个项目添加多个目标。
-
你知道怎么做吗?有教程吗?谢谢。
-
可以检测到当前的国家代码,仍然只使用一个.ipa
-
最好用两个不同的.ipa,因为以后两个.ipa可能会有不同的UI布局。
标签: ios swift xcode6 software-distribution