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

Compile errors #14

Closed
srinivasmangipudi opened this issue Jul 15, 2014 · 14 comments
Closed

Compile errors #14

srinivasmangipudi opened this issue Jul 15, 2014 · 14 comments

Comments

@srinivasmangipudi
Copy link

I followed your tutorial and added swifter xcode project to my project, but I am getting 151 compilation errors saying - swift compilation error in the SwifteriOS xcode project.

I also tried to build swifteriOS project as it is and get the same compile errors.

@mattdonnelly
Copy link
Owner

Hi, I'll need to see the errors you're getting in order to help you. Could you post them here?

@srinivasmangipudi
Copy link
Author

Hi Matt,

Here is the screenshot. Basically I just downloaded the project and built it, and am getting these errors.
All the files in the Swifter are not compiling. I am thinking it the linking with the bridging header that is probably causing the problems, but I am not sure.

screen shot 2014-07-15 at 8 19 50 pm

@mattdonnelly
Copy link
Owner

Which version of Xcode are you using?

@srinivasmangipudi
Copy link
Author

XCode Version 6.0 (6A215l)

@mattdonnelly
Copy link
Owner

Ah ok, try updating to Beta 3. That should fix it, if not, I'll look into it some more

@srinivasmangipudi
Copy link
Author

Hi Matt,

I upgraded to xcode 6.0 Beta 3, and your project is now building fine. But unfortunately when I include it in my project, cocoapods has stopped working and is not building. There seems to be an issue with the beta 3 version.

Does Swifter work with beta 2? if yes then I will install beta 2.

Thanks.

@mattdonnelly
Copy link
Owner

Sorry, Swifter only works with Beta 3. As far as I know though, Cocoapods doesn't work with any of the Xcode 6 betas, so I think you'll have to just add the code to your project manually

@srinivasmangipudi
Copy link
Author

I had cocoapods working with beta 1 and was using AFnetworking and the facebook sdk without problems. Now I am stuck with beta 3 and cannot even find the download link for beta 2, as I deleted my older xcode versions.

@mattdonnelly
Copy link
Owner

Strange. Well, if you want to keep using Beta 1 / 2 you could try using 1.2.1, which was the last version before updating the collection type syntax for Beta 3: https://github.com/mattdonnelly/Swifter/releases/tag/1.2.1

@srinivasmangipudi
Copy link
Author

Thanks I'll check it out, once I get my project back up working.

@srinivasmangipudi
Copy link
Author

I finally got Swifter 1.2.1 compiling with my project using xcode beta 2. But have not managed to get the twitter login work. The following are the issues:

1> the useAccount bit does not work. When I try to debug, my xcode keeps crashing consistently. So I set it to false to test the swifter part.

2> Here it takes me to the api.twitter.com to authorize and after successful authorization then it throws an error with the following message: "Cannot open page - Safari cannot open page because the address is invalid." Then it says redirecting you back, but does not, and when I click the redirect link, it gives the same error mentioned above.

What is the callback url supposed to be in case of a mobile app?

Also if I use appOnly = true, I get the second error screen.

screen shot 2014-07-16 at 6 24 33 pm

screen shot 2014-07-16 at 6 40 08 pm

@mattdonnelly
Copy link
Owner

What do you mean the useACAccount bool doesn't work?

Also, it looks like you haven't added a custom URL scheme to your app, which is why Safari is giving you that error. You can read about how to do it here: https://developer.apple.com/library/ios/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/AdvancedAppTricks/AdvancedAppTricks.html#//apple_ref/doc/uid/TP40007072-CH7-SW50

@mattdonnelly
Copy link
Owner

Closing this for now, but let me know if you have any more problems

@smhk
Copy link

smhk commented Jul 22, 2019

Here's the current link to add a custom app scheme to an iOS app in an app in Xcode

https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app

For the iOS target, go to "Info" tab and then "URL Types" section.

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

3 participants