yeatse / opencv-spm

Integrate OpenCV into your project using Swift Package Manager.
Apache License 2.0
71 stars 23 forks source link

Bad Bundle Executable #26

Closed borut-t closed 3 months ago

borut-t commented 3 months ago

I have added the package to the macos project. Everything runs perfectly until I try to send the app to the App Store Connect. I get the following error:

Bad Bundle Executable. You must include a valid CFBundleExecutable key in the nested bundle OpenCV [com.myApp.pkg/Payload/My.app/Contents/Frameworks/opencv2.framework] property list file. (ID: 1310d0e2-120d-400b-9bc5-7ae25a694465)

What could be the issue here?

yeatse commented 3 months ago

Looks like the same issue as https://github.com/yeatse/opencv-spm/issues/19

We should apply the same fix for macOS as well.

borut-t commented 3 months ago

Thanks. Looking forward for the next release 🙏

borut-t commented 3 months ago

@yeatse is there a planned fix/release for this issue?

yeatse commented 3 months ago

I will work on this over the weekend. For now as a workaround, you can simply remove the opencv2.framework folder from your xcarchive file.

yeatse commented 2 months ago

Should be fixed in the latest main branch

borut-t commented 2 months ago

It works. Thanks man 🙌