Skip to content
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

EXC_BAD_ACCESS #105

Open
markmadlangbayan opened this issue Aug 9, 2018 · 4 comments
Open

EXC_BAD_ACCESS #105

markmadlangbayan opened this issue Aug 9, 2018 · 4 comments

Comments

@markmadlangbayan
Copy link

markmadlangbayan commented Aug 9, 2018

After upgrading to Xcode 9.4.1, we're getting EXC_BAD_ACCESS when deploying to device. Any clue what's going on?

github "Swinject/Swinject" "2.4.1"
github "Swinject/SwinjectAutoregistration" "2.1.1"
github "Swinject/SwinjectStoryboard" "2.0.2"

image

Thanks!

@markmadlangbayan
Copy link
Author

Update on this, we were able to isolate the issue. It's not related to Xcode version, but deploying a debug build on a device with OTHER_SWIFT_FLAGS=-Onone build setting caused a EXC_BAD_ACCESS.

We fixed the issue by removing the "-Onone" optimization flag at OTHER_SWIFT_FLAGS build settings.

Anyone know why this is happening?

@kanwal-bhagat
Copy link

Hello,

I tried your solution OTHER_SWIFT_FLAGS=-Onone on the application target but it didnt worked out. Am I missing something?
I am facing the similar crash.

Regards
KB

@markmadlangbayan
Copy link
Author

Sorry, that's the only think I did to resolve my issue. It took me days, but what I end up doing was stripping my app and removed dependencies until I got to the OTHER_SWIFT_FLAGS.

@kanwal-bhagat
Copy link

Thanks!! not sure why its not working in my case. I don't have any other dependency other than swinject.
i updated the build settings as - optimization level for debug to -O (optimize for speed) as shown in the screenshot.
screenshot

I hope I have changed the right setting. Can you please confirm?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants