You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to this popular issue, useFrameworks: 'static' cannot be used in app.config.js like it can in app.json.
I haven't tried to replicate this finding because we absolutely require an app.config.js, but thus far a hundred other things I've tried have not resolved the issue reported in that thread, and so I have to imagine the problem is our use of app.config.js instead of app.json.
NOTE: Reported expo-doctor errors have been occurring for the past 6-7 SDK versions and are due to some error on the Expo or its handling of monorepos, not our code. The requiring packages for the flagged problems are the recommended versions of expo packages for our SDK version, eg [email protected]
✔ Check Expo config for common issues
✔ Check package.json for common issues
✔ Check dependencies for packages that should not be installed directly
✔ Check for common project setup issues
✔ Check Expo config (app.json/ app.config.js) schema
✔ Check npm/ yarn versions
✔ Check that packages match versions required by installed Expo SDK
✔ Check for legacy global CLI installed locally
✔ Check that native modules do not use incompatible support packages
✖ Check that native modules use compatible support package versions for installed Expo SDK
Detailed check results:
Expected package @expo/config-plugins@~7.2.2
Found invalid:
@expo/[email protected]
(for more info, run: npm why @expo/config-plugins)
Expected package @expo/metro-config@~0.10.0
Found invalid:
@expo/[email protected]
(for more info, run: npm why @expo/metro-config)
Advice: Upgrade dependencies that are using the invalid package versions.
One or more checks failed, indicating possible issues with the project.
Error output
❌ (../../node_modules/react-native/ReactCommon/cxxreact/Instance.cpp:24:10)
22 | #include <folly/MoveWrapper.h>
23 | #include <folly/json.h>
> 24 | #include <react/debug/react_native_assert.h>
| ^ 'react/debug/react_native_assert.h' file not found
25 |
26 | #include <glog/logging.h>
27 |
› Compiling react-native Pods/React-cxxreact » CxxNativeModule.cpp
› Compiling react-native Pods/React-cxxreact » cxxreact_vers.c
⚠️ Script has ambiguous dependencies causing it to run on every build.
To fix, go to: Xcode » ourproject/ourproject » Build Phases » 'Start Packager'
Either: Uncheck "Based on dependency analysis", or select output files to trigger the script
⚠️ Script has ambiguous dependencies causing it to run on every build.
To fix, go to: Xcode » ourproject/ourproject » Build Phases » 'Bundle React Native code and images'
Either: Uncheck "Based on dependency analysis", or select output files to trigger the script
⚠️ Script has ambiguous dependencies causing it to run on every build.
To fix, go to: Xcode » ourproject/ourproject » Build Phases » '[CP-User] [RNFB] Core Configuration'
Either: Uncheck "Based on dependency analysis", or select output files to trigger the script
▸ ** BUILD FAILED **
▸ The following build commands failed:
▸ CompileC /Users/expo/workingdir/build/packages/mobile/ios/build/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/React-cxxreact.build/Objects-normal/x86_64/Instance.o /Users/expo/workingdir/build/node_modules/react-native/ReactCommon/cxxreact/Instance.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'React-cxxreact' from project 'Pods')
▸ (1 failure)
2024-01-20 16:07:37.517 xcodebuild[4297:14424] DVTCoreDeviceEnabledState: DVTCoreDeviceEnabledState_Disabled set via user default (DVTEnableCoreDevice=disabled)
** BUILD FAILED **
The following build commands failed:
CompileC /Users/expo/workingdir/build/packages/mobile/ios/build/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/React-cxxreact.build/Objects-normal/x86_64/Instance.o /Users/expo/workingdir/build/node_modules/react-native/ReactCommon/cxxreact/Instance.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'React-cxxreact' from project 'Pods')
(1 failure)
Exit status: 65
Reproducible demo or steps to reproduce from a blank project
N/A
The text was updated successfully, but these errors were encountered:
I have already tried (probably) every other solution anyone has ever suggested on the internet.
I don't know if modifyConfigAsync may play a role. It does say: This will only fully work if the project is using static configs only. - but I've never seen the warning it notes would be produced if this was the problem.
you can indeed use it with app.config.js. both app.json / app.config.js are evaluated with the npx expo config --type public command, so if the result is the same in both cases you can use whichever config format you like.
the only limitation of the dynamic config is that we can't safely modify the config file itself automatically (eg: to add an eas project id) so we instead tell you what to add to your file.
Build/Submit details page URL
No response
Summary
According to this popular issue,
useFrameworks: 'static'
cannot be used inapp.config.js
like it can inapp.json
.I haven't tried to replicate this finding because we absolutely require an
app.config.js
, but thus far a hundred other things I've tried have not resolved the issue reported in that thread, and so I have to imagine the problem is our use ofapp.config.js
instead ofapp.json
.Can this discrepancy be addressed?
Managed or bare?
Managed
Environment
NOTE: Reported expo-doctor errors have been occurring for the past 6-7 SDK versions and are due to some error on the Expo or its handling of monorepos, not our code. The requiring packages for the flagged problems are the recommended versions of expo packages for our SDK version, eg
[email protected]
✔ Check Expo config for common issues
✔ Check package.json for common issues
✔ Check dependencies for packages that should not be installed directly
✔ Check for common project setup issues
✔ Check Expo config (app.json/ app.config.js) schema
✔ Check npm/ yarn versions
✔ Check that packages match versions required by installed Expo SDK
✔ Check for legacy global CLI installed locally
✔ Check that native modules do not use incompatible support packages
✖ Check that native modules use compatible support package versions for installed Expo SDK
Detailed check results:
Expected package @expo/config-plugins@~7.2.2
Found invalid:
@expo/[email protected]
(for more info, run: npm why @expo/config-plugins)
Expected package @expo/metro-config@~0.10.0
Found invalid:
@expo/[email protected]
(for more info, run: npm why @expo/metro-config)
Advice: Upgrade dependencies that are using the invalid package versions.
One or more checks failed, indicating possible issues with the project.
Error output
Reproducible demo or steps to reproduce from a blank project
N/A
The text was updated successfully, but these errors were encountered: