aws / amazon-chime-sdk-ios

An iOS client library for integrating multi-party communications powered by the Amazon Chime service.
https://aws.amazon.com/chime/chime-sdk/
Apache License 2.0
139 stars 64 forks source link

Invalid bundle with Xcode 15.3 #655

Closed jatindervrify closed 1 month ago

jatindervrify commented 4 months ago

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"),
           ...
            ]),
  2. 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):

Additional context N/A

bukira commented 3 months ago

Same, still not fixed in 0.25.0

Failed to load Info.plist from bundle at path /var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.KDeZ6n/extracted/name.app/Frameworks/AmazonChimeSDKMachineLearning.framework; Extra info about "/var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.KDeZ6n/extracted/nname.app/Frameworks/AmazonChimeSDKMachineLearning.framework/Info.plist": Couldn't stat /var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.KDeZ6n/extracted/name.app/Frameworks/AmazonChimeSDKMachineLearning.framework/Info.plist: No such file or directory

georgezy-amzn commented 3 months ago

Hi all, sorry for the inconvenience, we are working on a fix, will release it asap.

jatindervrify commented 2 months ago

@georgezy-amzn any updates on this one? This continues to be an issue for us even with the new Xcode 15.4 beta that has just been released.

bukira commented 2 months ago

any more on this?

bukira commented 2 months ago

any update?

georgezy-amzn commented 2 months ago

Hi all, the fix is coming very soon.

jatindervrify commented 1 month ago

@georgezy-amzn Thanks for getting the fix released! Any idea when 0.25.1 will be added to https://github.com/aws/amazon-chime-sdk-ios-spm?

georgezy-amzn commented 1 month ago

Hi all, the fix has been released with 0.25.1 on SPM now.