margelo / margelo/react-native-nitro-sqlite

Failed ios simulator build with 9.0.0 on Expo SDK 52

Open
#85 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

triage:needs-reproduction
Dominant language
C
Stars
565
Forks
53
Avg merge
1d 21h
Merged PRs (30d)
18

Description

Version 9.0.0 causes the EAS build to fail:

› Compiling react-native-nitro-sqlite Pods/RNNitroSQLite » HybridNitroSQLiteSpec.cpp
› Compiling react-native-nitro-sqlite Pods/RNNitroSQLite » HybridNitroSQLite.cpp
    Run script build phase '[CP-User] [Hermes] Replace Hermes for the right configuration, if needed' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'hermes-engine' from project 'Pods')
    Run script build phase 'Upload Debug Symbols to Sentry' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target '[APP_SCHEME]' from project '[APP_SCHEME]')
    Run script build phase '[CP-User] [RN]Check rncore' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'React-FabricComponents' from project 'Pods')
    Run script build phase '[CP-User] [RN]Check rncore' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'React-Fabric' from project 'Pods')
    Run script build phase '[CP-User] Generate updates resources for expo-updates' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'EXUpdates' from project 'Pods')
    Run script build phase '[CP-User] Generate app.config for prebuilt Constants.manifest' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'EXConstants' from project 'Pods')
▸ ** BUILD FAILED **
▸ The following build commands failed:
▸ 	CompileC /Users/expo/workingdir/build/ios/build/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RNNitroSQLite.build/Objects-normal/x86_64/OnLoad.o /Users/expo/workingdir/build/node_modules/react-native-nitro-sqlite/ios/OnLoad.mm normal x86_64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'RNNitroSQLite' from project 'Pods')
▸ 	Building workspace [APP_SCHEME] with scheme [APP_SCHEME] and configuration Debug
▸ (2 failures)
** BUILD FAILED **
The following build commands failed:
	CompileC /Users/expo/workingdir/build/ios/build/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RNNitroSQLite.build/Objects-normal/x86_64/OnLoad.o /Users/expo/workingdir/build/node_modules/react-native-nitro-sqlite/ios/OnLoad.mm normal x86_64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'RNNitroSQLite' from project 'Pods')
	Building workspace [APP_SCHEME] with scheme [APP_SCHEME] and configuration Debug
(2 failures)
Exit status: 65
+---------------------------------------+
|           Build environment           |
+-------------+-------------------------+
| xcode_path  | /Applications/Xcode.app |
| gym_version | 2.225.0                 |
| sdk         | iPhoneSimulator18.1.sdk |
+-------------+-------------------------+
Looks like fastlane ran into a build/archive error with your project
It's hard to tell what's causing the error, so we wrote some guides on how
to troubleshoot build and signing issues: https://docs.fastlane.tools/codesigning/getting-started/
Before submitting an issue on GitHub, please follow the guide above and make
sure your project is set up correctly.
fastlane uses `xcodebuild` commands to generate your binary, you can see the
the full commands printed out in yellow in the above log.
Make sure to inspect the output above, as usually you'll find more error information there
[!] Error building the application - see the log above
Error: The "Run fastlane" step failed with an unknown error. Refer to "Xcode Logs" below for additional, more detailed logs.

Project dependencies:

"expo": "~52.0.7"
"react-native": "0.76.2"
"react-native-nitro-modules": "^0.17.0"
"react-native-nitro-sqlite": "^9.0.0"

Any idea on how to fix this? 🤔

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The failure is reported while compiling node_modules/react-native-nitro-sqlite/ios/OnLoad.mm for the iPhoneSimulator18.1 SDK. Start by reproducing the EAS iOS simulator build with Expo SDK 52 and inspect the complete compiler diagnostics for the RNNitroSQLite target. Done means the listed dependency versions build successfully for the simulator.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, ios, react-native, sqlite
Domain
databases, mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.