-
-
Notifications
You must be signed in to change notification settings - Fork 343
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Xcode 15 build fail - module 'SentryPrivate' not found #3322
Comments
Hi, Recently we solved a very similar issue caused by extra c compiler flags. I check your Podfile and I don't see any, but maybe some library changes them? I'll try to clone the project to reproduce the error. |
node node_modules/react-native/scripts/generate-codegen-artifacts.js➜ metamask-mobile git:(react-native-0.71.13-xcode-15-beta-8) ✗ node node_modules/react-native/scripts/generate-codegen-artifacts.js \
--path . \
--outputPath codegen
[Codegen] Processing react-native core libraries
[Codegen] Found react-native
[Codegen] >>>>> Searching for codegen-enabled libraries in /Users/leo/Documents/GitHub/metamask-mobile/node_modules
[Codegen] Found @react-native-community/blur
[Codegen] Found @sentry/react-native
[Codegen] Found react-native-screens
[Codegen] Found @react-native-community/datetimepicker
[Codegen] CodegenConfig Deprecated Setup for @react-native-community/slider.
The configuration file still contains the codegen in the libraries array.
If possible, replace it with a single object.
BEFORE:
{
// ...
"codegenConfig": {
"libraries": [
{
"name": "libName1",
"type": "all|components|modules",
"jsSrcsRoot": "libName1/js"
},
{
"name": "libName2",
"type": "all|components|modules",
"jsSrcsRoot": "libName2/src"
}
]
}
}
AFTER:
{
"codegenConfig": {
"name": "libraries",
"type": "all",
"jsSrcsRoot": "."
}
}
[Codegen] Found @react-native-community/slider
[Codegen] >>>>> Searching for codegen-enabled libraries in react-native.config.js
[Codegen] >>>>> Searching for codegen-enabled libraries in the app
[Codegen] >>>>> Processing FBReactNativeSpec
[Codegen] Generated schema: /var/folders/6f/45z345qn1nx4l85rv0kx8y0m0000gn/T/FBReactNativeSpecMbZ9YU/schema.json
[Codegen] Generated artifacts: codegen/build/generated/ios
[Codegen] >>>>> Processing rncore
[Codegen] Generated schema: /var/folders/6f/45z345qn1nx4l85rv0kx8y0m0000gn/T/rncorec1EIBX/schema.json
[Codegen] Generated artifacts: codegen/build/generated/ios
[Codegen] >>>>> Processing rnblurview
[Codegen] Generated schema: /var/folders/6f/45z345qn1nx4l85rv0kx8y0m0000gn/T/rnblurviewL14bJt/schema.json
[Codegen] Generated artifacts: codegen/build/generated/ios
[Codegen] >>>>> Processing RNSentrySpec
[Codegen] Generated schema: /var/folders/6f/45z345qn1nx4l85rv0kx8y0m0000gn/T/RNSentrySpeciNnD6p/schema.json
[Codegen] Generated artifacts: codegen/build/generated/ios
[Codegen] >>>>> Processing rnscreens
[Codegen] Generated schema: /var/folders/6f/45z345qn1nx4l85rv0kx8y0m0000gn/T/rnscreensuxljGH/schema.json
[Codegen] Generated artifacts: codegen/build/generated/ios
[Codegen] >>>>> Processing RNDateTimePickerCGen
[Codegen] Generated schema: /var/folders/6f/45z345qn1nx4l85rv0kx8y0m0000gn/T/RNDateTimePickerCGenjb88u8/schema.json
[Codegen] Generated artifacts: codegen/build/generated/ios
[Codegen] >>>>> Processing RNCSlider
[Codegen] Generated schema: /var/folders/6f/45z345qn1nx4l85rv0kx8y0m0000gn/T/RNCSliderBGs0zf/schema.json
[Codegen] Generated artifacts: codegen/build/generated/ios
>>>>> Creating component provider
Generated schema list: /var/folders/6f/45z345qn1nx4l85rv0kx8y0m0000gn/T/rn-tmp-schema-list.json
Generated provider in: codegen/build/generated/ios
[Codegen] Done. |
yes should be happening on but my PR fixes Xcode 15 issues i've encountered so far |
@leotm The compiler flags look good at first glance. We will have to investigate. I'll use your branch to avoid any other Xcode 15 issues. |
I'm getting the same Just to keep track.
Since the last one adjusts the compiler flags it might be the similar issue as #3186 |
I'm not getting the
# https://github.com/facebook/react-native/blob/main/packages/react-native/scripts/react_native_pods.rb#L197-L202
react_native_post_install(
installer,
config[:reactNativePath],
:mac_catalyst_enabled => false
) Let me know if this works for you. |
cheers @krystofwoldrich! got it working, noting below what i did too reverted branch/mixpanel git submodule changes again for successful removed our custom ![]() no Sentry error 🎉 locally ran ![]() ![]() Flipper strikes again, solved locally for now ![]() TODO: need to investigate exactly how this is happening then similar again ![]() ![]() ![]() success 🎉 ![]() ![]() appreciate your help once again |
@leotm Awesome to hear. Thanks for the message. |
OS:
Platform:
SDK:
@sentry/react-native
(>= 1.0.0)react-native-sentry
(<= 0.43.2)SDK version: 5.8.1
react-native
version: 0.71.13Are you using Expo?
Are you using sentry.io or on-premise?
If you are using sentry.io, please post a link to your issue so we can take a look:
Configuration:
https://github.com/MetaMask/metamask-mobile/blob/main/app/util/sentryUtils.js#L143-L162
I have the following issue:
Loving Sentry ^ but run into this build error since Xcode 15 beta
Steps to reproduce:
Actual result:
Build error
Expected result:
No error
The text was updated successfully, but these errors were encountered: