We are facing a blocking issue when trying to deploy our iOS build on FlutterFlow.
The build suddenly started failing with the following error:
Error (Xcode): Undefined symbol: _OBJC_CLASS_$_CMMotionManager
Error (Xcode): Linker command failed with exit code 1
Based on our investigation, we have a guess that this symbol is part of CoreMotion, and it appears to be indirectly required by the local_auth / local_auth_darwin package.
However:
We do not use biometrics anywhere in the app
The Biometrics permission is automatically enabled in FlutterFlow and cannot be disabled
The app used to build perfectly fine until very recently
We did not change anything related to authentication or motion sensors
In Project Dependencies โ FlutterFlow Pub Dependencies, the
local_authpackage is included, but this list is read-only, so we cannot remove it or change its version
So at the moment, we are fully stuck and cannot produce an iOS build.Here is the full magic log:
<h4>Failed Step: Flutter build ipa and automatic versioning</h4>
Archiving com.ommistack.application...
Upgrading contents.xcworkspacedata
Updating project for Xcode compatibility.
Upgrading project.pbxproj
Upgrading Runner.xcscheme
Upgrading Info.plist
Removing script build phase dependency analysis.
Adding input path to Thin Binary build phase.
Upgrading Runner.xcscheme
Automatically signing iOS for device deployment using specified development team in Xcode project: R7JD894HYP
Running pod install... 3.7s
Running Xcode build...
Xcode archive done. 136.8s
Failed to build iOS app
Error (Xcode): Undefined symbol: OBJCCLASS_$_CMMotionManager
Error (Xcode): Linker command failed with exit code 1 (use -v to see invocation)
Encountered error while archiving for device.
Build failed :|