• libgdx IDEA 发布ipa到AppStore


    在不清楚怎么用自己喜欢的开发环境发布app是一件很痛苦的事。经过一番google和蒙之后,终于成功提交build到AppStore。再次总结一下注意点,希望能看见这篇嫖客的小伙伴都少走弯路。

    1. 在父项目的build.gradle中的project(":ios")中添加以下配置证书(红色字体)

    project(":ios") {
        apply plugin: "java"
        apply plugin: "robovm"
    
        configurations { natives }
    
        dependencies {
            compile project(":core")
            compile "org.robovm:robovm-rt:${roboVMVersion}"
            compile "org.robovm:robovm-cocoatouch:${roboVMVersion}"
            compile "com.badlogicgames.gdx:gdx-backend-robovm:$gdxVersion"
            natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-ios"
            compile fileTree(dir: 'libs', include: '*.jar')//add at 20140828 for 内购
        }
        robovm {
            iosSignIdentity = "iPhone Distribution: XXXXXXXXXXXX"
            iosProvisioningProfile = "xxxxx"
        }
    }

    注意iosSignIdentity里填的是钥匙串里的名字,而不是Xcode里看到的。我的Xcode里看到的是iOS Distribution,一直报找不到。

    至于怎么弄证书就自己google吧,不复杂。

    2. 运行gradle的ios [createIPA]命令,创建ipa。

    3. 在iTunes Connect创建对应的App,下载ApplicationLoader并上传ipa。

    --------------------------------------------------

    补充:

    1. Info.plist.xml设定仅提供给iPhone

    <key>UIDeviceFamily</key>
        <array>
            <integer>1</integer><!--iPhone/iPod-->
            <!--<integer>2</integer>iPad-->
        </array>

    2. Info.plist.xml设定仅使用竖屏

    <key>UISupportedInterfaceOrientations</key>
        <array>
            <string>UIInterfaceOrientationPortrait</string>
            <!--<string>UIInterfaceOrientationLandscapeLeft</string>
            <string>UIInterfaceOrientationLandscapeRight</string>-->
        </array>

    3. 增加iOS7的120x120的icon,文件名可以是Icon-60@2x.png

    <key>CFBundleIcons</key>
        <dict>
            <key>CFBundlePrimaryIcon</key>
            <dict>
                <key>CFBundleIconFiles</key>
                <array>
                    <string>Icon</string>
                    <string>Icon-72</string>
                    <string>Icon-60</string>
                </array>
            </dict>
        </dict>

    4. 再次提交前,createIPA前修改版本号robovm.properties

    app.version, app.build

  • 相关阅读:
    Ubuntu升级后apache所有的失败,以解决虚拟文件夹的设置
    UVA315- Network(无向图割点)
    技术新领导人张小龙:一些成功不能复制
    mac在查看jre通路
    ubuntu14.04(64位置) ADB Not Responding
    【SSH三框架】Hibernate基金会七:许多附属业务
    HDU1796-How many integers can you find
    再次递归思想-路劲跨越多个阵列
    基于ORACLE建表和循环回路来创建数据库存储过程SQL语句来实现
    Android4.3 蓝牙BLE初步
  • 原文地址:https://www.cnblogs.com/hanhongmin/p/4007878.html
Copyright © 2020-2023  润新知