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

Build Issue while first installation #654

Closed
gsujathap opened this issue Sep 26, 2016 · 14 comments
Closed

Build Issue while first installation #654

gsujathap opened this issue Sep 26, 2016 · 14 comments
Labels

Comments

@gsujathap
Copy link

gsujathap commented Sep 26, 2016

screen shot 2016-09-26 at 3 33 05 pm

I have done swiftyjson installation using cocoapods after that build failed error occurs. How to resolve this issue?

@zhigang1992
Copy link
Contributor

zhigang1992 commented Sep 26, 2016

Seems like the screenshot hasnt finish uploading yet.
Can you try it again?

@gsujathap
Copy link
Author

Please resolve this issue ASAP. Thank you in advance.

@gsujathap gsujathap reopened this Sep 27, 2016
@gsujathap
Copy link
Author

I have resolved this issue by updating SWIFT with latest version from 2.0 to 3.0

@zhigang1992
Copy link
Contributor

If you are using swift 2.3 please use swift2 branch, or 2.4.0 on cocoapods.

#647

@gsujathap gsujathap reopened this Sep 27, 2016
@gsujathap
Copy link
Author

Now, I am using Swift 3.0. How to resolve this issue?

@zhigang1992
Copy link
Contributor

Can you try #647

@tomas-petrovcin
Copy link

Had the same issue. I had Xcode 8.0 and there wasn't any updates in appstore. Solved by downloading Xcode 8.1 from https://developer.apple.com/download/.

@justdan0227
Copy link

For the time being you can just attempt to save after Xcode 8.0 has attempted to update the file to Swift3. You will get a lock message and if you then click on cancel, then clean the project and build it should clean up (it may also ask you to update your build file which you can go ahead and let it do).

@zhigang1992
Copy link
Contributor

Right, that's because of the cocoapods issue

see #647 for more detail

@justdan0227
Copy link

thanks @zhigang1992 ! Didn't know that. What version of cocoapods does not have that issue?

@zhigang1992
Copy link
Contributor

1.1.0.rc.2 or higher

@justdan0227
Copy link

Ahhh thanks.. I have a Ruby on Rails project that has to use 0.32.0 so will have to use this work around for now.

@zhigang1992
Copy link
Contributor

zhigang1992 commented Oct 3, 2016

Or, if you can't upgrade your cocoapods,

post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      config.build_settings['SWIFT_VERSION'] = '3.0'
      config.build_settings['MACOSX_DEPLOYMENT_TARGET'] = '10.10'
    end
  end
end

@justdan0227
Copy link

Awesome! Thanks!

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

No branches or pull requests

4 participants