运行 tns 资源生成图标被杀死iOS app

Running tns resources generate icons killed iOS app

我 运行 tns resources generate splashestns resources generate icons 它在 Android 上工作正常但是当它在 iOS 上重新加载时我得到以下错误:

/* com.apple.actool.errors / /Users/adam_beck/Desktop/code/fingoalNS/platforms/ios/fingoalNS/Resources/Assets.xcassets: error: None of the input catalogs contained a matching stickers icon set or app icon set named "AppIcon". / com.apple.actool.document.warnings / /Users/adam_beck/Desktop/code/fingoalNS/platforms/ios/fingoalNS/Resources/Assets.xcassets:./LaunchScreen.AspectFill.imageset/(null)[2d][LaunchScreen-AspectFill.png]: warning: The image set "LaunchScreen.AspectFill" has 2 unassigned children. /Users/adam_beck/Desktop/code/fingoalNS/platforms/ios/fingoalNS/Resources/Assets.xcassets:./LaunchScreen.Center.imageset/(null)[2d][LaunchScreen-Center.png]: warning: The image set "LaunchScreen.Center" has 2 unassigned children. /Users/adam_beck/Desktop/code/fingoalNS/platforms/ios/fingoalNS/Resources/Assets.xcassets:./LaunchImage.launchimage/(null)[2d][Default-1125h.png]: warning: The launch image set "LaunchImage" has 12 unassigned children. / com.apple.actool.compilation-results */ /Users/adam_beck/Desktop/code/fingoalNS/platforms/ios/build/Debug-iphonesimulator/fingoalNS.app/LaunchImage-700-568h@2x.png /Users/adam_beck/Library/Developer/Xcode/DerivedData/fingoalNS-fvoglrpadrrtljalueomxfllvudt/Build/Intermediates.noindex/fingoalNS.build/Debug-iphonesimulator/fingoalNS.build/assetcatalog_generated_info.plist

当我为 iOS 重建时,出现以下错误:

Failed to find LaunchScreen.storyboard but it was specified in the Info.plist. Consider updating the resources in app/App_Resources/iOS/. A good starting point would be to create a new project and diff the changes with your current one. Also the following repo may be helpful: https://github.com/NativeScript/template-hello-world/tree/master/App_Resources/iOS We will now place an empty obsolete compatability white screen LauncScreen.xib for you in platforms/ios/fingoalNS/Resources/LaunchScreen.xib so your app may appear as it did in pre v2.1.0 versions of the ios runtime. Info.plist: Merging CFBundleURLTypes: Property CFBundleTypeRole is required!

并以 Command xcodebuild failed with exit code 65

退出

想法?

万一其他人遇到此问题,tns 命令从未起作用,但我能够通过 Sidekick 成功生成启动画面和图标。来自他们的文档:

  1. 启动 NativeScript Sidekick 并打开您的应用程序。
  2. 从左侧工具栏中,select 资产打开资产视图。
  3. 要生成应用程序的图标,请完成以下步骤。
    1. 在生成器的图标占位符中,单击“浏览”。
    2. 浏览并找到您要使用的图像源,select 然后单击“打开”。
    3. 出现提示时,选择要为哪些平台生成图标。
    4. 点击生成并等待操作完成。
  4. 要生成应用程序的启动画面,请完成以下步骤。
    1. 在生成器的启动画面占位符中,单击“浏览”。
    2. 浏览并找到您要使用的图像源,select 然后单击“打开”。
    3. 出现提示时,选择要为哪些平台生成启动画面。
    4. (可选)以十六进制格式提供自定义背景颜色。
    5. 点击生成并等待操作完成。
  5. (可选)Select Android 和 iOS 选项卡检查新添加的应用程序资产。

我在 Windows 并且这个命令完美运行:

tns resources generate icons app-icon.png

我把图标放在了主文件夹里,所以它不需要给路径或smth.. 与飞溅相同:

tns resources generate splashes app-icon.png --background white