Comments (31)
@jhickman7 CocoaPods does not support Swift yet, @CocoaPods working on it.
from sclalertview-swift.
@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.
@jhickman7 I will check that tonight then, it may be old version on CocoaPods.
from sclalertview-swift.
@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.
@jhickman7 What Xcode do you use?
I successfully compiled on Xcode 6.1 GM
from sclalertview-swift.
Using 6.0 right now. Will update to 6.1 later and see if that fixes it. Thanks!
from sclalertview-swift.
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.
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.
@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.
@jhickman7 I'm going to update podspec tonight, Thanks
from sclalertview-swift.
@vikmeup Awesome! Thank you!
from sclalertview-swift.
@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.
Have you successfully updated your pod? I'm facing the same problem now.
from sclalertview-swift.
@yeahdongcn I could not do it. I was getting error, described in previous message.
from sclalertview-swift.
@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.
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.
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.
It doesn't work with pods and Xcode Version 6.1.1.
from sclalertview-swift.
@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.
@Rameshv I wish I had Xcode 5 installed.
from sclalertview-swift.
@vikmeup oops thats a bummer :(
from sclalertview-swift.
I think you should release it via Cocoa Pods beta. It started supporting Swift as of now.
from sclalertview-swift.
Tried with Cocoa Pods beta which allegedly does support swift. The alert is still not working. Any advice?
from sclalertview-swift.
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.
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.
@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.
@AnthonyMDev I would push it tonight, but if you have chance, please do! Thanks.
from sclalertview-swift.
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.
@AnthonyMDev could you check if it works now? I updated podspec for version 0.3.1 and did pod truck push
from sclalertview-swift.
@vikmeup Could you push the latest podspec file as well? 0.4 isn't available through Cocoapods.
from sclalertview-swift.
@isair Thanks. Just pushed it!
from sclalertview-swift.
Related Issues (20)
- Layout broken on orientation change even thou space available ...
- Project crashes after updating Xcode. HOT 2
- Dark Mode support? HOT 2
- Support Swift Package Manager HOT 2
- Resize SCLAlertView after presented
- Convenience Method for close button text HOT 1
- How to change border color of textfield added in swift project? HOT 1
- Can we get colorStyle: colorTextButton: to take UIColor or ColorLiterals? HOT 2
- Ability to create a keypad
- Can't add this via SPM HOT 2
- is v0.8 released in 2017 the latest? HOT 2
- Crash at UIApplication.shared.keyWindow! as UIWindow HOT 1
- MultiTasking - iPad - Alert Unresponsive HOT 1
- Add ability to show alert without icon HOT 2
- No outline button
- Attributed Text HOT 1
- Readme needs updating HOT 1
- No longer maintained ? HOT 1
- com.apple.main-thread SCLAlertView.swift showHTMLTitle / showHTMLInfo HOT 1
- only available on ios 13 or newer HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sclalertview-swift.