如何切换iOS应用程序的构建

时间:2015-08-07 03:10:08

标签: ios localization xcode6

我的应用程序支持20种语言,例如:英语,德语,法语,丹麦语...... 现在我要构建2个版本: 1.仅限英语 2.完整的20种语言。

我必须创建2个单独的项目才能构建2个IPA文件吗?

我正在使用Xcode版本6.4(6E35b)

1 个答案:

答案 0 :(得分:1)

复制目标,然后在Sub LoopThroughFiles() Dim lastRow As Long 'Dim LastFile As Long 'Is there need of it (LastFile variable)? I kept this variable 'to save (prior known) count of files in folder. lastRow = Sheets("Sheet1").UsedRange.Rows.Count 'LastFile = 'Pass count of Files in folder to this variable. Dim fileName As Range For Each fileName In Worksheets("Sheet1").Range("A2:A" & lastRow) Dim rngFnder As Range On Error Resume Next 'Error at below line. Set rngFnder = Dir("E:\Folder\").Find(filename) 'This line gives me error 'Invalid Qualifier' 'I am trying to use method similar to Find() If rngFnder Is Nothing Then filename.Interior.Color = vbRed End If Next End Sub >中添加密钥(YOUR_KEY = 1) Target> Build Settings

enter image description here

现在,您可以使用Preprocessor Macros为2个目标定义网址。

#if #else #endif