Invalid Swift Support / The SwiftSupport folder is empty

前端 未结 19 1374
轻奢々
轻奢々 2020-12-08 13:01

Environment: Xcode 7 GM

I uploaded iOS app successfully using Xcode without error. This app is written in Objective-C and Swift.

However, immediately after s

相关标签:
19条回答
  • 2020-12-08 13:39

    Setting "Embedded Content Contains Swift Code" to $(inherited) worked for me. The warning after executing the CocoaPods command pod install helped me to find this out.

    [!] The `applewatch Extension [Debug]` target overrides the `EMBEDDED_CONTENT_CONTAINS_SWIFT` build setting defined in `Pods/Target Support Files/Pods-applewatch Extension/Pods-applewatch Extension.debug.xcconfig'. This can lead to problems with the CocoaPods installation
    - Use the `$(inherited)` flag, or  <--------------
    - Remove the build settings from the target.
    
    0 讨论(0)
  • 2020-12-08 13:43

    This happened to me after I changed project settings. Go to "File" > "Project Settings..." (or in some cases "Workspace Settings...") and then select "Use Shared Setting" from the "Build System" dropdown.

    0 讨论(0)
  • 2020-12-08 13:45

    My problem was that I was using an adhoc profile to submit to TestFlight (has to be a distribution provisioning profile). Great error messages Apple!

    0 讨论(0)
  • 2020-12-08 13:46

    You also get this error when you upload an ipa that has a plist with export_method set to ad-hoc instead of app-store to itunes ...

    0 讨论(0)
  • 2020-12-08 13:47

    I received this same email after uploading an .ipa file to App Store Connect through the Transporter app. The following is where I went wrong: I distributed the app using ad hoc.

    The following steps are the solution for my error:

    1. Archive app
    2. Distribute on TestFlight and the App Store
    3. Export
    4. Open ExportOptions.plist in the newly created folder from the export.
    5. Make sure the method property has the value app-store if you are uploading to App Store Connect/TestFlight like me.
    6. Drag and drop the exported .ipa file to Transporter.
    7. Deliver your app to upload it.

    And that's it!

    0 讨论(0)
  • 2020-12-08 13:49

    This error can happen if you use xcodebuild to export the IPA without specifying the -exportOptionsPlist option

    See xcodebuild -help for the available keys, but you probably want a plist with at least the method key set to "app-store", like this:

    <?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>method</key>
        <string>app-store</string>
    </dict>
    </plist>
    
    0 讨论(0)
提交回复
热议问题