mlkit icon indicating copy to clipboard operation
mlkit copied to clipboard

[Bug report] Missing platform load command in TextRecognitionCommon iOS framework

Open kubajakowski opened this issue 1 year ago • 3 comments

Describe the bug Compiler during the build shows warning No platform load command found in pathToProject/MLKitTextRecognitionCommon, assuming: iOS

AND

It's unable to create xcframework using xcodebuild command - the error says error: unable to determine the platform for the given binary pathToFramework/MLKitTextRecognitionCommon; check your deployment version settings

Only this particular framework has this issue - others are ok.

To Reproduce Build project and see Xcode log OR execute otool command to see that platform info is missing OR try to build xcframework to use in project without cocoapods

Expected behavior No warning in build log and possibility to build xcframework

SDK Info:

  • GoogleMLKit/TextRecognition 6.0.0

Development Environment:

  • IDE version: Xcode 15.1

kubajakowski avatar May 20 '24 14:05 kubajakowski

Any update on this???? same trouble here. Thanks!! @kubajakowski

devopsean avatar Aug 16 '24 04:08 devopsean

Im also facing same issue No platform load command found in '/Users/MyUsername/Documents/Flutter_Apps/MyProject/ios/Pods/MLKitTextRecognitionCommon/Frameworks/MLKitTextRecognitionCommon.framework/MLKitTextRecognitionCommon', assuming: iOS

rajasekhar-pasupuleti avatar Aug 20 '24 11:08 rajasekhar-pasupuleti

Tell it to use the old linker, though, I don't know how long this last as that is deprecated: -Wl,-ld_classic but that will silence the warning.

mahmoudimus avatar Aug 20 '25 16:08 mahmoudimus