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
String is not identifcal to NSObject #14
Comments
Adding |
Nevermind, doing that then just causes build errors. Undefined symbols for architecture x86_64: |
That is weird. I have just updated OAuth2App and am not getting this error. |
Can you try building OAuth2App and see if this error also occurs (should be in |
OAuth2App worked (OSX) ... perhaps something with iOS? |
My iOS project seems to work as well. Can you create a gist with the whole method/function that you've posted a screenshot of above and add the link here? |
https://gist.github.com/danshev/8a81b82636b89b1a4f65 Maybe I screwed up linking / embedding? |
Thanks, I have created a fresh iOS project, pasted your code and get the same error. Will take a look! |
Sure thing, thank you for your knowledge! |
It seems to create an NSDictionary explicitly, interesting. Does it work without crash for you if you use this?
|
That's what I tried first, I get a bunch of exotic compile errors. |
It seems to work for me...? |
http://stackoverflow.com/questions/25820810/undefined-symbols-for-architecture-x86-64-ios-swift |
Care to share the app you just tested with? |
I simply created a new Swift one-view iOS app, added the OAuth2 framework as a submodule, added it to the project and linked it (like in your screenshot above) and hit "Run". Is your app an Objective-C app with some Swift code? Also make sure, in build settings, to set "Embedded content contains Swift code" to YES. |
I was able to receive an access token with this code (client secret/key are real, you can use them for testing):
|
My app is pure Swift and it says Yes for contains embedded ... are you needing an |
Ah yes; add "import OAuth2" at the top. But the compiler would complain if you didn't. |
Ya, fresh app worked for me. Will troubleshoot why I'm not able to bring it in to my existing app. Thanks for the help. |
Great, glad I could help and thanks for your helpful responses! I'll update the example in the README and close this issue when done. 👍 |
Found it ... frustratingly simple I had: Correct: |
Ha! Definitely something the compiler should have noticed. Closing as I've updated the README. Thanks! |
Following the
Usage
steps and I get:Also, minor, but there's no note about the need for
import Oauth2
I'm new, perhaps I missed a step and am causing my own problems? Note: xCode 6.2 (6C131e)
The text was updated successfully, but these errors were encountered: