zoukankan      html  css  js  c++  java
  • 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

  • 相关阅读:
    项目实战从 0 到 1 学习之Flink (24)Flink将kafka的数据存到redis中
    LeetCode107. 二叉树的层次遍历 II
    LeetCode102. 二叉树的层序遍历
    LeetCode341. 扁平化嵌套列表迭代器
    【总结】二叉树的前中后序遍历(递归和非递归)
    LeetCode145. 二叉树的后序遍历
    LeetCode94. 二叉树的中序遍历
    LeetCode144. 二叉树的前序遍历
    LeetCode71. 简化路径
    LeetCode150. 逆波兰表达式求值
  • 原文地址:https://www.cnblogs.com/hanhongmin/p/4007878.html
Copyright © 2011-2022 走看看