-
-
Notifications
You must be signed in to change notification settings - Fork 323
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
Circle CI MacOS Intel, Fastlane build failing - module 'SentryPrivate' not found #3186
Comments
Hi, Could you share your |
Hi thanks for your interest on this issue, After yarn install all dependencies I just do
and all Sentry dependencies for IOS are installed then by themselves. Here is my
|
@pavlobu Do you see in the CI logs pod install logs Sentry being installed? You should see all three of these:
|
@krystofwoldrich
also I see this on install cocoapods step in logs |
@brustolin @philipphofmann Do you have an idea what could cause this error in CI, or what to check? #3186 (comment) |
Please run |
Hi, but the error didn't disappear and is the same |
Did it work in previous versions, @pavlobu? If yes, what's the last version you could build your project with Fastlane? @brustolin, do you have any idea what could cause this? |
@philipphofmann No it didn't work in previous versions. This is a very first integration of Sentry in my project. The local build succeeds and I manage to send some crash statistics to Sentry and see it. But circle ci build never passes. The project buils successfully with the same version of Fastlane when I remove Sentry |
This is by using Fastlane build locally or when you build the project manually? |
Hi, Also I've used my older Intel chip-based Macbook, the project builds on it too in Xcode without problems |
I see. Would you mind trying building the project with Fastlane instead of Xcode locally? |
I can't run Fastlane locally because I don't have some configs and app store certificates in order to do so. I managed to successfully add many other cocoapods dependencies, such as Stripe and Mapbox, and there were no issues with them during the build. Here is a complete output of Fastlane build in Circle CI: Here is my
|
can it be a problem of something basic like linking the dependency after it's been installed? |
This is the first time this problem has shown up. We haven't found a reason yet. |
is there any possible fix for this issue? I have my trial period running out for Sentry and I'm still tentative if I should use it in the project because it doesn't compile |
Hello @pavlobu. Did you changed any settings on the project to compile external frameworks as statics? |
@brustolin hi, |
@pavlobu Would you be able to set up a minimal reproducible example that we could debug? |
@krystofwoldrich sure I will prepare a reproducible example repo and will notify you when it's ready. So far, I found that the problem is in the here is the example of the command that fails the build from
this command fails with the same error event when it's run by me in terminal, outside of fastlane job |
@pavlobu Thanks for the update this helps a lot with debugging. I've tried a similar command with our sample app and got the same error. The command:
The Error:
|
@krystofwoldrich that's great that you could reproduce this issue! |
We are investigating the issue. We have noticed that the project archives without the extra C flags |
@krystofwoldrich, sounds good! adding my current Fastlane file that triggers xcodebuild with gym is like this:
|
we can add other xcargs like this:
all this is added to |
@krystofwoldrich |
@pavlobu Thank you for the details. |
hi, does anyone have ideas on how we can get rid of |
@pavlobu No additional flags, but removing the OTHER_CFLAGS makes the build succeed. |
@krystofwoldrich , great! It really worked. So I just had to remove xcargs line in my Fastlane file and now the build succeeds. Thank you very much! |
@pavlobu that's good to hear, thanks for reporting back! |
OS:
Platform:
SDK:
@sentry/react-native
(>= 1.0.0)react-native-sentry
(<= 0.43.2)SDK version: 5.7.1
react-native
version: 0.67.5Are you using Expo?
Are you using sentry.io or on-premise?
Configuration:
(
@sentry/react-native
)I have following issue:
When building Sentry for IOS on Circle CI using Fastlane I have the following error that prevents me to finish a successful project build. But on my personal laptop with m2 apple chip, it builds ok.
Steps to reproduce:
Actual result:
Expected result:
Build should not be failing because of module 'SentryPrivate' not found
The text was updated successfully, but these errors were encountered: