gpt4 book ai didi

swift - 无效的 Swift 支持 - SwiftSupport 文件夹为空

转载 作者:行者123 更新时间:2023-12-03 21:16:53 26 4
gpt4 key购买 nike

我的构建已成功上传,但由于苹果发送的以下问题未在 testflight 上显示。
应用程序详细信息:我有 React Native 的 iPhone 应用程序和 swift 语言的 watchOS 应用程序。
Xcode 版本:11.3
苹果报告的问题 -

ITMS-XXXX: Invalid Swift Support - The SwiftSupport folder is empty.Rebuild your app using the current public (GM) version of Xcode andresubmit it.


我搜索并尝试了很多东西,但没有任何效果。也试过下面的链接
  • The SwiftSupport folder is missing. Rebuild your app using the current public (GM) version of Xcode and resubmit it
  • https://forums.developer.apple.com/thread/125902
  • “嵌入的内容包含 Swift 代码”设置为是

  • 我的查询 的更新答案:
    我通过在 Swift Support 的 watchOS 文件夹中添加所需的框架解决了这个问题。可能是它的 Xcode 问题,它正在为我的 watchOS 创建空文件夹。遵循以下步骤
    1. Copy watchOS lib swift file from this path "‎⁨ /Applications/Xcode.app/Contents/Developer/ToolChains/XcodeDefault.xctoolchain/usr/lib/swift/⁨watchos⁩"Or You can also get framework from your previous watch build which issuccessfully uploaded
    2. Paste the copied library in below location

    2.1 Create Archive of your app -> Right click on selected build and select show in finder -> show package content -> Swiftsupport ->watchOS/"Paste here"

    2.2 Paste those frame in framework folder also by following the below pathRight click on selected build and select show in finder -> show package content -> Products ->Applications -> right click on ipa file -> show packagecontent->Watch->Right click on your watch app -> show package content-> Frameworks/"Paste here"

    1. Set "Always embedded swift standard libraries" to yes in builsetting of you main app target and watchkitapp (Not in extension)

    Optional step

    if your SwiftSupport->iPhoneOS folder is also empty thenjust create new swift file to your objective c code it will ask forbridge rest it will do for all required things (No need to connectthis file with any objective c just add it to project)

    最佳答案

    我对这个问题的解决方法是:

  • 在 Xcode -> Organizer 窗口中,创建存档后,右键单击您的新
    存档
  • 按“在 Finder 中显示”
  • 在 Finder 中右键单击存档
  • 按“显示包内容”
  • 删除“SwiftSupport”文件夹

  • 现在您可以提交而不会出现该错误。

    我在 React Native 项目中遇到了这个问题。

    我尝试了很多最流行的解决方案,例如编辑build设置,但没有一个对我有用。

    关于swift - 无效的 Swift 支持 - SwiftSupport 文件夹为空,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59728413/

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