-
-
Notifications
You must be signed in to change notification settings - Fork 237
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
Undefined symbol: _OBJC_CLASS_$_PrivateSentrySDKOnly #1300
Comments
@mahmed8003 its likely something in your environment, just created an empty project and it works. |
same problem. |
@marandaneto I created a new project and integrated the sentry library, everything worked fine on the simulator but then I added these configurations to Pod file and the error start to appear again.
Following is the test project run for ios simulator. |
Hello @mahmed8003.
I tried your sample and it works when I target a real device. |
Hi @brustolin
I have had these settings before and the sentry was working fine with older versions. |
Thats interesting, I would have to investigate. For now try this pod configuration: post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['EXPANDED_CODE_SIGN_IDENTITY'] = ""
config.build_settings['CODE_SIGNING_REQUIRED'] = "NO"
config.build_settings['CODE_SIGNING_ALLOWED'] = "NO"
config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64 i386" unless target.name.include? 'Sentry'
end
flutter_additional_ios_build_settings(target)
end
end |
@brustolin your comment enabled me learn more about pod configurations 🤝
|
Platform:
IDE:
Platform installed with:
Output of the command
flutter doctor -v
below:The version of the SDK (See pubspec.lock):
Failed to run the app on iPhone simulator, Error during the compilation process.
Everything works fine when I run the app on a real ios device. I am able to create new builds and upload them. But when I try to run the app on an ios simulator compilation process throws the above errors. I first face this error when I upgraded to
sentry_flutter: ^6.19.0
and later today I upgraded tosentry_flutter: ^6.21.0
and the issue still persists.I have tried cleaning project, cleaning pods, removing Podfile.lock but nothing worked.
pod install
actually installsInstalling Sentry (7.31.5)
The text was updated successfully, but these errors were encountered: