gpt4 book ai didi

ios - Xcode:没有一个输入目录包含匹配的应用程序图标/启动图像集

转载 作者:行者123 更新时间:2023-12-01 16:08:53 27 4
gpt4 key购买 nike

在尝试归档 iOS 项目时,我的 Xcode 开始表现得很奇怪。

  • 所有文件都在原来的位置
  • 我试图返回到之前的提交
  • 尝试重启 Xcode
  • 我也尝试过清理构建并手动删除整个构建文件夹
  • 在项目设置中更改这些 Asset Catalog App Icon Set NameAsset Catalog Launch Image Set Name
  • 重建图像.xcassets

  • 这些都没有帮助,我仍然看到同样的错误。

    错误总是发生在构建过程的最后阶段( Compile asset catalogs )。

    Xcode 控制台:
    CompileAssetCatalog build/Build/Intermediates/ArchiveIntermediates/reactproject/InstallationBuildProductsLocation/Applications/reactproject.app build/Build/Intermediates/reactproject/Images.xcassets
    cd /Users/user/Developer/reactproject/ios
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/usr/bin/actool --output-format human-readable-text --notices --warnings --export-dependency-info /Users/user/Developer/reactproject/ios/build/Build/Intermediates/ArchiveIntermediates/reactproject/IntermediateBuildFilesPath/reactproject.build/Release-iphoneos/reactproject.build/assetcatalog_dependencies --output-partial-info-plist /Users/user/Developer/reactproject/ios/build/Build/Intermediates/ArchiveIntermediates/reactproject/IntermediateBuildFilesPath/reactproject.build/Release-iphoneos/reactproject.build/assetcatalog_generated_info.plist --app-icon AppIcon --launch-image LaunchImage --compress-pngs --enable-on-demand-resources YES --sticker-pack-identifier-prefix com.example.reactproject.sticker-pack. --target-device iphone --target-device ipad --minimum-deployment-target 8.0 --platform iphoneos --product-type com.apple.product-type.application --compile /Users/user/Developer/reactproject/ios/build/Build/Intermediates/ArchiveIntermediates/reactproject/InstallationBuildProductsLocation/Applications/reactproject.app /Users/user/Developer/reactproject/ios/build/Build/Intermediates/reactproject/Images.xcassets

    /* com.apple.actool.errors */
    /Users/user/Developer/reactproject/ios/build/Build/Intermediates/reactproject/Images.xcassets: error: None of the input catalogs contained a matching app icon set named "AppIcon".
    /Users/user/Developer/reactproject/ios/build/Build/Intermediates/reactproject/Images.xcassets: error: None of the input catalogs contained a matching launch image set named "LaunchImage".
    /* com.apple.actool.notices */
    /Users/user/Developer/reactproject/ios/build/Build/Intermediates/reactproject/Images.xcassets: warning: Failed to read file attributes for "/Users/user/Developer/reactproject/ios/build/Build/Intermediates/reactproject/Images.xcassets"
    Failure Reason: No such file or directory
    /* com.apple.actool.compilation-results */
    /Users/user/Developer/reactproject/ios/build/Build/Intermediates/ArchiveIntermediates/reactproject/IntermediateBuildFilesPath/reactproject.build/Release-iphoneos/reactproject.build/assetcatalog_generated_info.plist

    最佳答案

    有一个名为 Asset Catalog Launch Image Set Name ( ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME ) 的build设置,您需要在 Xcode 的build设置中从目标中清除它(您也可以在您喜欢的文本编辑器中从 .pbxproj 文件中删除相应的行)。

    背景:几年前,随着不同尺寸设备的大量涌现,Apple 转而使用预制 UI 文件 (.xib) 作为启动屏幕来代替一系列静态图像。这曾经在目标 UI 的 General 选项卡中公开,但现在已经足够长了,因为使用它已将其删除,因此您必须在 Build Settings 选项卡中进行探索。

    关于ios - Xcode:没有一个输入目录包含匹配的应用程序图标/启动图像集,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41596997/

    27 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com