简体   繁体   English

Trigger.io App无法通过Application Loader验证,不符合最低操作系统版本,并且无法验证图标文件

[英]Trigger.io App fails Application Loader verification, not respecting minimum os version and cannot verify icon file

I'm using the latest version of Trigger.io and have my mobile application configured to require iOS 5.0 or higher, and I've got all the icons loaded in the config.json file, eg: 我正在使用最新版本的Trigger.io,并将移动应用程序配置为需要iOS 5.0或更高版本,并且我已将所有图标加载到config.json文件中,例如:

"modules": {
    …
    "icons": {
        "android": {
            "36": "path/to/ICON_36sq.png",
            "48": "path/to/ICON_48sq.png",
            "72": "path/to/ICON_72sq.png"
        },
        "ios": {
            "57": "path/to/ICON_57sq.png",
            "72": "path/to/ICON_72sq.png",
            "114": "path/to/ICON_144sq.png",
            "512": "path/to/ICON_512sq.png",
            "prerendered": true
        }
    },
    …

However, when trying to deploy the application to the App Store using the Application Loader, I get the following error: 但是,当尝试使用应用程序加载程序将应用程序部署到App Store时,出现以下错误:

iPhone/iPod Touch: Info.plist: Unable to verify icon dimensions, no icon found. You must define CFBindleIcons, CFBundleIconFiles, CFBundleIconFile, or provide a default Icon.png that us 57x57.

应用程序加载器错误

The icon file does exist and is correctly configured for my app, so it's not a issue of the file not existing. 图标文件确实存在,并且已为我的应用正确配置,因此这不是文件不存在的问题。 It also works correctly on the simulator and my development device, just not when releasing to the app store. 它也可以在模拟器和我的开发设备上正常工作,而不是发布到应用商店时不能正常工作。

Any help is appreciated. 任何帮助表示赞赏。

POSSIBLE CAUSE : If I dig into the IPA and look at the Plist.info file in the resulting package created by trigger.io, the MinimumOSVersion is set to 4.3 , and not respecting what I have in my config.json file (minimum version I've set to is iOS 5.0 ). 可能的原因 :如果我深入IPA并查看trigger.io创建的结果包中的Plist.info文件,则MinimumOSVersion设置为4.3 ,并且不尊重config.json文件中的内容(最低版本I已设置为iOS 5.0 )。


After more research, I found that I can deploy the app successfully using v1.4.36 and below. 经过更多研究,我发现我可以使用v1.4.36及以下版本成功部署该应用程序。 Looks like the refactor in v1.4.37 has broken the Minimum OS Requirements again! 似乎v1.4.37中的重构再次违反了最低操作系统要求!

This was a bug in the Trigger.io platform: we deployed a fix in v1.4.44 - see https://trigger.io/docs/current/api/release_notes.html 这是Trigger.io平台中的错误:我们在v1.4.44中部署了一个修补程序-请参阅https://trigger.io/docs/current/api/release_notes.html

There are currently two ways to define custom icon file names in an iOS app. 当前,有两种方法可以在iOS应用中定义自定义图标文件名。 After recreating an Xcode project we use internally, the newly generated Info.plist only conformed to the new style, which causes Application Loader problems. 重新创建我们内部使用的Xcode项目后,新生成的Info.plist仅符合新样式,这会导致Application Loader问题。

v1.4.44 restored the old-style icons configuration. v1.4.44恢复了旧样式的图标配置。

You need to use relative paths from the 'src' directory rather than assuming a baseUrl. 您需要使用“ src”目录中的相对路径,而不是使用baseUrl。 So use "path/to/ICON_36sq.png" not "/path/to/ICON_36sq.png" 因此,请使用“ path / to / ICON_36sq.png”而不是“ /path/to/ICON_36sq.png”

If you look at "development/ios/build_steps/icons.json" you'll see something like that. 如果您查看“ development / ios / build_steps / icons.json”,将会看到类似的内容。

[
{
    "do": {
        "copy_file_from_src": {
            "filename": "{{plugins.icons.config.ios.57}}",
            "dest": "normal.png"
        }
    }
},
{
    "do": {
        "copy_file_from_src": {
            "filename": "{{plugins.icons.config.ios.72}}",
            "dest": "ipad.png"
        }
    }
},
{
    "do": {
        "copy_file_from_src": {
            "filename": "{{plugins.icons.config.ios.114}}",
            "dest": "retina.png"
        }
    }
},
{
    "do": {
        "copy_file_from_src": {
            "filename": "{{plugins.icons.config.ios.144}}",
            "dest": "ipad-retina.png"
        }
    }
},
{
    "do": {
        "icons_handle_prerendered": {}
    }
}

] ]

As shown above, the build is copying the 57px icon in your configuration to "normal.png" and the 72px to "ipad.png", but for some reason the Application Loader is not recognizing the CFBundleIconFiles entry in the Info.plist. 如上所示,该版本将配置中的57px图标复制到“ normal.png”,将72px复制到“ ipad.png”,但是由于某些原因,Application Loader无法识别Info.plist中的CFBundleIconFiles条目。

I solved my problem using a postbuild hook to copy the 57px icon to the expected default name "Icon.png" and the 72px icon to "Icon-72.png" (the file names are case sensitive). 我使用postbuild钩子将57px图标复制到预期的默认名称“ Icon.png”,将72px图标复制到“ Icon-72.png”(文件名区分大小写),从而解决了我的问题。 The files have to be copied to the "development/ios/device-ios.app/" folder. 这些文件必须复制到“ development / ios / device-ios.app /”文件夹中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何将应用程序的图标(由Trigger.io制作的应用程序)添加到iOS内容共享菜单 - How do you add an app's icon (app made with Trigger.io) to the iOS content sharing menu Trigger.io-Facebook应用安装跟踪 - Trigger.io — Facebook app install tracking trigger.io iOS应用程序内购买问题:“应用程序内支付失败:无法连接到iTunes Store” - trigger.io iOS in-app purchase issue: “In-app payment failed: Cannot connect to itunes store” 在iOS版本的Trigger.io应用中输入文本字段会导致除背景外的所有内容消失 - Typing in text field in iOS version of trigger.io app causes everything except background to disappear 苹果应用商店拒绝了先前通过的Trigger.IO应用 - Apple app store rejected a previously passed Trigger.IO app 应用程序不会在Trigger.io中停留在人像模式 - App won't stay in Portrait mode in Trigger.io trigger.io应用程序的iOS App Store批准率 - iOS App Store approval rate for trigger.io apps trigger.io本机iOS模块可在检查器中运行,而不在应用程序中运行 - trigger.io native iOS module works in inspector, not app Trigger.io-在显示视图之前执行应用程序逻辑 - Trigger.io - perform application logic before view is displayed Trigger.io麦克风访问 - Trigger.io microphone access
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM