Issue
After running the pod install command to build the native mobile packages, the build fails with the following error:
[!] Invalid `Podfile` file: unknown keyword: quirks_mode
Environment
Native Mobile
Cause
This is a compatibility issue between the React Native version used by the Mendix native template and the versions of Ruby and CocoaPods installed on the local build machine. The newer Ruby and CocoaPods versions (for example Ruby 4.0.7 with CocoaPods 1.17.0) are not compatible with the Podfile generated by the native template in Studio Pro 10.24.x, which causes the quirks_mode keyword to be rejected.
Solution / Workaround
Downgrade the local build tooling to versions that are compatible with the React Native version of the native template version 14.x.x:
- Downgrade Ruby to version 3.2.x or 3.3.x (for example 3.2.4 or 3.3.0).
- Downgrade CocoaPods to version 1.14.x or 1.16.x (for example 1.16.2).
- Run the
pod installcommand again to build the native package.
Internal information related
289521
Additional information
Mendix documentation:
0 Comments