Azure-Samples / Azure-Samples/cognitive-services-ios-customvision-sample

bitcode in CVSInference is no longer supported in App Store

Open
#15 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Swift
Stars
60
Forks
22
PR merge metrics
No merged PRs in 30d

Description

I have successfully created an app to do object detection using Azure's custom vision. It works on my iPhone, but when trying to upload it to the App Store, I get an error that bitcode is no longer supported.

When creating an archive to upload the project to the App Store or test center, there is an error
Validation failed
Invalid Executable. The executable 'ObjectDetection.app/Frameworks/CVSInference.framework/CVSInference' contains bitcode. (ID: dbeae3c8-bd77-4e68-89ef-bd77767f38a1)

Others seem to have similar problems with other cocoa pods. I've tried updating the Pods Podfile to try to remove bitcode, but this didn't work. I added the following to the end of the Pods/Podfile:

post_install do |installer|
installer.pod_target_subprojects.each do |subproject|
subproject.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['ENABLE_BITCODE'] = 'NO'
end
end
end
end

Using Xcode 16.2

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.