<-- Back

Building a native mobile app on iOS fails: Invalid Podfile file: unknown keyword: quirks_mode

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:

  1. Downgrade Ruby to version 3.2.x or 3.3.x (for example 3.2.4 or 3.3.0).
  2. Downgrade CocoaPods to version 1.14.x or 1.16.x (for example 1.16.2).
  3. Run the pod install command again to build the native package.

Internal information related

289521

Additional information

Mendix documentation:

 

Have more questions? Submit a request

0 Comments

Article is closed for comments.

To provide feedback, please open a ticket here. Don't forget to include the article's URL along with the feedback you would like to provide.