yeatse / opencv-spm

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

Unable to upload to app store Xcode 15.3 #19

Closed SencyNetanel closed 7 months ago

SencyNetanel commented 7 months ago

I am able to run my Swift app on a device, but when I attempt to upload the app to the App Store, I encounter these errors.

Asset validation failed
Invalid bundle structure. The “MyApp.app/Frameworks/opencv2.framework/opencv2” 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: ead35781-db31-4807-8108-729da79c9bf0)

Asset validation failed
Invalid bundle structure. The “MyApp.app/Frameworks/opencv2.framework/Versions/A/opencv2” 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: d9b16b4a-68e4-4c6e-a052-0743197d8360)

Asset validation failed
Missing Info.plist value. A value for the key 'MinimumOSVersion' in bundle MyApp.app/Frameworks/opencv2.framework is required. (ID: b955705f-e151-462e-a618-719e3a01a848)

Asset validation failed
This bundle is invalid. The bundle at path Payload/MyApp.app/Frameworks/opencv2.framework has an invalid CFBundleIdentifier '' CFBundleIdentifier must be present, must contain only alphanumerics, dots, hyphens and must not end with a dot. [see the Core Foundation Keys at https://developer.apple.com/library/content/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html#//apple_ref/doc/uid/TP40009249-102070-TPXREF105] (ID: b4dac887-c059-4659-a16c-ef1fa760a9d0)

Asset validation failed
The bundle 'Payload/MyApp.app/Frameworks/opencv2.framework' is missing plist key. The Info.plist file is missing the required key: CFBundleShortVersionString. Please find more information about CFBundleShortVersionString at https://developer.apple.com/documentation/bundleresources/information_property_list/cfbundleshortversionstring (ID: ac1bd17f-a05b-4b67-989a-c5b639a07f71)

Asset validation failed
This bundle Payload/MyApp.app/Frameworks/opencv2.framework is invalid. The Info.plist file is missing the required key: CFBundleVersion. Please find more information about CFBundleVersion at https://developer.apple.com/documentation/bundleresources/information_property_list/cfbundleversion (ID: 85bf9bb7-8e2f-4271-8c00-e277a69408ad)
yeatse commented 7 months ago

https://github.com/yeatse/opencv-spm/issues/15

yeatse commented 7 months ago

Thanks for reporting this. In #15 I just make it runnable on devices but did not verify its ability to be uploaded to the App Store. I'll fix it soon.

As a workaround for now, you can use Xcode 15.2 to build your app, or remove the opencv2.framework folder within your xcarchive file.

bigMOTOR commented 7 months ago

Thanks @yeatse Looking forward for fix

yeatse commented 7 months ago

Fixed in latest main branch (4.9.0+14)