由于苹果修改了发布规则,原先在iTunes Connect里上传的1024x1024图标,修改为要加入到发布的ipa包里。导致delphi生成的app无法在苹果商店发布。查阅很多资料,以下办法可以通过发布审阅。
1. 在xcode上生成一个空的Project, 命名为和DELPHI工程相同的名称。
2. 在Assets.xcassets的AppIcon里把要求的图标都加入。
3. 在Assets.xcassets生成一个LaunchImage, 将要求的图标都加入。
4. 设置正确的发布到商店需要的Provision Profile文件,在product菜单选择archive,按照提示往下走,在上传到app store的选择的时候,改为导出到本地,这样在本地就可以获得生成的ipa包。
5. 把ipa包拷贝到delphi所在的windows电脑,将ipa后缀改为7z,然后解压缩后,里面有如下文件:
LaunchScreen.storyboardc 目录
AppIcon60x60@2x.png
AppIcon76x76@2x~ipad.png
Assets.car
6. 先编译原来Delphi的工程,然后deploy后,在release目录里找到<你的工程名称>.info.plist文件,拷贝到工程根目录下,改名为Info.plist,然后删除
<key>CFBundleIconFiles</key>
<array>
<string>.....</string>
......
<string>....</string>
</array>
在删除的位置上加入
<key>CFBundleIcons</key>
<dict>
<key>CFBundlePrimaryIcon</key>
<dict>
<key>CFBundleIconFiles</key>
<array>
<string>AppIcon60x60</string>
</array>
<key>CFBundleIconName</key>
<string>AppIcon</string>
</dict>
</dict>
<key>CFBundleIcons~ipad</key>
<dict>
<key>CFBundlePrimaryIcon</key>
<dict>
<key>CFBundleIconFiles</key>
<array>
<string>AppIcon60x60</string>
<string>AppIcon76x76</string>
</array>
<key>CFBundleIconName</key>
<string>AppIcon</string>
</dict>
</dict>
7. 在 <key>DTPlatformName</key> <string>iphoneos</string> 下面加入 <key>DTPlatformVersion</key> <string>13.4</string>, 13.4 为IOS SDK的版本号,根据你实际情况修改。
8. 在 <key>DTSDKBuild</key> <string>17E255</string> 下面加入
<key>UILaunchStoryboardName</key> <string>LaunchScreen</string>
9. 删除<key>CFBundleResourceSpecification</key> <string>ResourceRules.plist</string>, 应该需要删除两个位置。
10. 打开Delphi的IDE的deployment窗口,将里面所有和app图标相关的文件都勾选掉不要,同时勾选掉ResourceRules.plist不要,还有STAPP.info.plist也勾选掉不要。
11. 将刚才ipa包里的文件包括LaunchScreen.storyboardc目录里的文件加入到deployment表里
LaunchScreen.storyboardc 目录
AppIcon60x60@2x.png
AppIcon76x76@2x~ipad.png
Assets.car
12. 再deploy一次,生成新的ipa文件,上传到app store就可以通过审核了。