通过命令行创建Assets.car文件以进行应用程序退出 [英] Creating Assets.car file through command line for app resigning

查看:175
本文介绍了通过命令行创建Assets.car文件以进行应用程序退出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用被标记为白色,方法是构建通用应用,然后用新图像将应用捆绑在一起.在iOS11之前,我可以通过将新图像切换到包中并辞职来实现此目的.但是,现在对于应用程序图标来说,资产目录是必需的,我在创建Assets.car文件时遇到了麻烦.

My app is white labeled by building a generic app and then resigning the app bundle with new images. Before iOS11 I could achieve this by switching in new images into the bundle and resigning. However now that asset catalogs are required for the app icons I'm having trouble creating the Assets.car file.

这是我尝试过的:

Images.xcassets复制到工作目录(旁边是build目录). Images.xcassets包含AppIcons.appiconsetLaunchImage.launchimage.

Copying Images.xcassets to a working directory (with a build directory next to it). Images.xcassets contains AppIcons.appiconset and LaunchImage.launchimage.

从命令行

xcrun actool Images.xcassets --compile build --platform iphoneos --minimum-deployment-target 9.0

它似乎正在运行,但是没有创建文件.

It seems to run but no file is created.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>com.apple.actool.compilation-results</key>
    <dict>
        <key>output-files</key>
        <array/>
    </dict>
</dict>
</plist>

我希望我缺少明显的东西.

I hope I'm missing something obvious.

推荐答案

您只需要使用appiconset的名称即可.

You just need to use the name of your appiconset.

因此在此示例中添加:

 --app-icon AppIcons --output-partial-info-plist build/partial.plist

这篇关于通过命令行创建Assets.car文件以进行应用程序退出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆