amazon-chime-sdk-ios icon indicating copy to clipboard operation
amazon-chime-sdk-ios copied to clipboard

Invalid bundle with Xcode 15.3

Open jatindervrify opened this issue 11 months ago • 0 comments

Describe the bug When archiving or deploying a build with AmazonChimeSDKMachineLearning as part of an SPM package an error occurs. This is only on Xcode 15.3 and not previous versions of Xcode. Unfortunately I'm not sure if this is an Xcode issue or a Chime SDK issue. Everything works fine on Xcode 15.2.

To Reproduce Steps to reproduce the behavior:

  1. Include Chime in any SPM package as a dependency. Ex:
    .... 
    dependencies: [
        .package(url: "https://github.com/aws/amazon-chime-sdk-ios-spm", exact: "0.23.3"),
         ....
    ],
    targets: [
        // Targets are the basic building blocks of a package, defining a module or a test suite.
        // Targets can depend on other targets in this package and products from dependencies.
        .target(
            name: "Chime",
            dependencies: [
            ...
                .product(name: "AmazonChimeSDK", package: "amazon-chime-sdk-ios-spm"),
                .product(name: "AmazonChimeSDKMedia", package: "amazon-chime-sdk-ios-spm"),
                .product(name: "AmazonChimeSDKMachineLearning", package: "amazon-chime-sdk-ios-spm"),
           ...
            ]),
  1. Using Xcode 15.3 simply deploy your build to a device or attempt to upload to TestFlight. The following error will occur:
Invalid bundle structure. The “___.app/Frameworks/AmazonChimeSDKMachineLearning.framework/AmazonChimeSDKMachineLearning” binary file is not permitted. Your app cannot contain standalone executables or libraries, other than a valid CFBundleExecutable of supported bundles. For details, visit: https://developer.apple.com/documentation/bundleresources/placing_content_in_a_bundle (ID: e1ef147f-d52e-46c3-be97-e2bf32fb63bd)

Expected behavior The AmazonChimeSDKMachineLearning binary should be valid for use with Xcode. Removing the AmazonChimeSDKMachineLearning results in everything working but then we can no longer use the AWS blur.

Logs N/A

Screenshots image

Test environment Info (please complete the following information):

  • Device: Any Simulator and Physical devices
  • OS: iOS 17.4/17.2
  • Version AmazonChimeSDK: 0.23.3
  • Version AmazonChimeSDKMedia: ^
  • Can you reproduce this in the demo app? Can't build it If you are reporting a crash:
  • How often is this crash occurring?
  • Are there metrics on CPU or memory use at the time of the crash?
  • Are you using bitcode supported binaries?
  • Please provide full crash logs in the form of a ".crash" or ".ips" file with a binary images section.

Additional context N/A

jatindervrify avatar Mar 08 '24 19:03 jatindervrify