Giter Site home page Giter Site logo

Comments (31)

vikmeup avatar vikmeup commented on May 24, 2024

@jhickman7 CocoaPods does not support Swift yet, @CocoaPods working on it.

from sclalertview-swift.

 avatar commented on May 24, 2024

@vikmeup What do you mean not supported? I have about 15 other pods installed that run just fine. These errors are all Swift language issues.

from sclalertview-swift.

vikmeup avatar vikmeup commented on May 24, 2024

@jhickman7 I will check that tonight then, it may be old version on CocoaPods.

from sclalertview-swift.

vikmeup avatar vikmeup commented on May 24, 2024

@jhickman7 or you may change it and send pull request, it's most likely optional parameters that changed in the last version of Swift.

from sclalertview-swift.

vikmeup avatar vikmeup commented on May 24, 2024

@jhickman7 What Xcode do you use?
I successfully compiled on Xcode 6.1 GM

from sclalertview-swift.

 avatar commented on May 24, 2024

Using 6.0 right now. Will update to 6.1 later and see if that fixes it. Thanks!

from sclalertview-swift.

 avatar commented on May 24, 2024

Hmm still getting the same issue. Installed a fresh Xcode copy from Mac App Store (Version 6.1 (6A1052d)). Tried adding into a blank, brand new project using Swift only and still get the same above errors. If I have time later this week, i'll update it myself and create a pull request. Weird though that you aren't getting that issue.

from sclalertview-swift.

vikmeup avatar vikmeup commented on May 24, 2024

Try to run Example Project.

Thanks.

On Tue, Oct 21, 2014 at 6:29 PM, James Hickman [email protected]
wrote:

Hmm still getting the same issue. Installed a fresh Xcode copy from Mac
App Store (Version 6.1 (6A1052d)). Tried adding into a blank, brand new
project using Swift only and still get the same above errors. If I have
time later this week, i'll update it myself and create a pull request.
Weird though that you aren't getting that issue.


Reply to this email directly or view it on GitHub
#28 (comment)
.


Viktor Radchenko

from sclalertview-swift.

 avatar commented on May 24, 2024

@vikmeup Ok cloned and ran the example project. Compiles just fine. However, comparing the code from the example and comparing from a fresh Pod Install shows differences where I am getting those Swift errors (above screenshot). Is the example project and cocoapod synced and up to date?
Your .podspec shows the latest version is 0.2.2, is that correct?

from sclalertview-swift.

vikmeup avatar vikmeup commented on May 24, 2024

@jhickman7 I'm going to update podspec tonight, Thanks

from sclalertview-swift.

 avatar commented on May 24, 2024

@vikmeup Awesome! Thank you!

from sclalertview-swift.

vikmeup avatar vikmeup commented on May 24, 2024

@jhickman7
I can't update the pod, getting this error:
Viktor-iMac:SCLAlertView-Swift user$ pod trunk push SCLAlertView.podspec
Validating podspec
-> SCLAlertView (0.3)
- ERROR | [xcodebuild] error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: unknown option character `X' in: -Xlinker

Found this issue:
CocoaPods/CocoaPods#2226

from sclalertview-swift.

yeahdongcn avatar yeahdongcn commented on May 24, 2024

Have you successfully updated your pod? I'm facing the same problem now.

from sclalertview-swift.

vikmeup avatar vikmeup commented on May 24, 2024

@yeahdongcn I could not do it. I was getting error, described in previous message.

from sclalertview-swift.

 avatar commented on May 24, 2024

@vikmeup Can we re-open this issue? May draw some attention from other users who may be able to help solve your 'push' error.

from sclalertview-swift.

 avatar commented on May 24, 2024

Also, from your provided post (CocoaPods/CocoaPods#2226) it looks like they found a fix:

It works with Xcode 5 command line tools. Make sure that Xcode command line tools version is set to 5.x.x.
Xcode preference > Location tab > Command Line Tools

from sclalertview-swift.

MHaroonBaig avatar MHaroonBaig commented on May 24, 2024

Well I used this SCL-Alert here in my project https://github.com/MHaroonBaig/Swift-Beautify
Compiled just fine on the Xcode 6.1
I couldn't get it working through the pods so what I did is that I copied SCLAlertView.swift file into my project manually and got that working.

from sclalertview-swift.

mattes avatar mattes commented on May 24, 2024

It doesn't work with pods and Xcode Version 6.1.1.

from sclalertview-swift.

Rameshv avatar Rameshv commented on May 24, 2024

@vikmeup still its not resolved. But there seems to be a workaround according to the post CocoaPods/CocoaPods#2226 (comment)

As per the post

It works with Xcode 5 command line tools. Make sure that Xcode command line tools version is set to 5.x.x.

Xcode preference > Location tab > Command Line Tools 

from sclalertview-swift.

vikmeup avatar vikmeup commented on May 24, 2024

@Rameshv I wish I had Xcode 5 installed.

from sclalertview-swift.

Rameshv avatar Rameshv commented on May 24, 2024

@vikmeup oops thats a bummer :(

from sclalertview-swift.

MHaroonBaig avatar MHaroonBaig commented on May 24, 2024

I think you should release it via Cocoa Pods beta. It started supporting Swift as of now.

from sclalertview-swift.

Rogog avatar Rogog commented on May 24, 2024

Tried with Cocoa Pods beta which allegedly does support swift. The alert is still not working. Any advice?

from sclalertview-swift.

bbdevelopment avatar bbdevelopment commented on May 24, 2024

I would like to get an update on this as well. would really like to use this in my current project but getting the above errors. I am using the pod beta and have no problems with any of the other swift installs.

from sclalertview-swift.

AnthonyMDev avatar AnthonyMDev commented on May 24, 2024

These are just some issues with changes to the Swift syntax with Swift 1.1.

Its incredibly easy to fix. @vikmeup, would you like me to submit a pul request, or is this getting done soon?

from sclalertview-swift.

AnthonyMDev avatar AnthonyMDev commented on May 24, 2024

@vikmeup
Actually, after forking the repo, I realized that the problems have been fixed, you just need to push a new version with the fixes up to the CocoaPods Master Repo.

Do you need help with that, or can you get that taken care of?

from sclalertview-swift.

vikmeup avatar vikmeup commented on May 24, 2024

@AnthonyMDev I would push it tonight, but if you have chance, please do! Thanks.

from sclalertview-swift.

AnthonyMDev avatar AnthonyMDev commented on May 24, 2024

Well, I don't have the credentials to push to your Pod Trunk, so you have to do it. Just wanted to make sure you knew the process.

from sclalertview-swift.

vikmeup avatar vikmeup commented on May 24, 2024

@AnthonyMDev could you check if it works now? I updated podspec for version 0.3.1 and did pod truck push

from sclalertview-swift.

isair avatar isair commented on May 24, 2024

@vikmeup Could you push the latest podspec file as well? 0.4 isn't available through Cocoapods.

from sclalertview-swift.

vikmeup avatar vikmeup commented on May 24, 2024

@isair Thanks. Just pushed it!

from sclalertview-swift.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.