yeatse / opencv-spm

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

Bad Bundle Executable #26

Closed borut-t closed 1 month ago

borut-t commented 1 month 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 1 month 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 1 month ago

Thanks. Looking forward for the next release 🙏

borut-t commented 1 month ago

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

yeatse commented 1 month 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 1 month ago

Should be fixed in the latest main branch

borut-t commented 1 month ago

It works. Thanks man 🙌