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

Error when testing - EXC_BAD_INSTRUCTION #19

Closed
heelstoo opened this issue May 19, 2015 · 3 comments
Closed

Error when testing - EXC_BAD_INSTRUCTION #19

heelstoo opened this issue May 19, 2015 · 3 comments

Comments

@heelstoo
Copy link

I'm getting an error (EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode 0x0)) on the return on this:

func sirenBundlePath() -> String {
return NSBundle.mainBundle().pathForResource("Siren", ofType: "bundle") as String!
}

Thread 1 says:
0 function signature specialization <Arg[1] = Owned to Guaranteed> of ext.MYAPP.ObjectiveC.NSBundle.(sirenForcedBundlePath in _......."

Any ideas? It seems to only crash when I try to make the app fail (by pointing towards the iTunes Connect appID, since my app isn't in the store yet to test against.

Thanks!

@ArtSabintsev
Copy link
Owner

Hi @heelstoo,

Silly question, but is Siren.bundle in your project? If not, this may be causing that issue. Make sure both Siren.bundle and Siren.swift are in your project. If it is in your project, would you mind providing me with your appID, so I may attempt to replicate this issue?

Thanks!

@heelstoo
Copy link
Author

Hey @ArtSabintsev

Thanks for getting back to me. That's not a silly question at all! I'm brand new to iOS development. I had Siren.bundle in a subdirectory, but I guess that didn't take for some reason. I've copied it to the right place and it appears to have fixed the issue. Thank you so much for your help!

@ArtSabintsev
Copy link
Owner

ah, well welcome to iOS development and thank you for using this library! I'm glad you got it working!

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