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
Swift 3 - CocoaPods Integration Issues #300
Comments
@Chris-Corea what version of Cocoapods are you using? And are your command line tools definitely pointed @ Xcode 8? |
I'm on XCode 8 and there are issues with the latest version of SnapKit and Xcode 8. Most of it is extraneous arguments. |
@adhiravishankar @Chris-Corea what may have happened is I did this release using Xcode 8 GM not Xcode 8 from app store and there may be some subtle difference. I'm checking now. |
@adhiravishankar @Chris-Corea so I've triple checked and I can't reproduce this. Can both of you please confirm: Xcode Version
Cocoapods Version
Project Swift Version
Project Podfile.lock
|
Xcode Version 8.0(8A218a) |
@HaijunWei, since
|
If anybody gets here who is having issues pushing a Swift 3 update to a pod that has SnapKit as a dependency, I was getting similar compile errors only when trying I was able to fix this by running |
@sahandnayebaziz ah that is how you fix the linter! I cheated and just disabled the lint check in the gem ruby code. |
what time will be support swift3.0? |
@Mosaics it's already supported, there's just some Cocoapods issues with installing dependencies. Nothing I can do for SnapKit to resolve that. |
I would hold off on renaming the issue just yet, I fixed my errors, but I might receive an update and it would get rid of it. I haven't had time yet to check it, but I'll highlight the issues I had as soon as I can. |
Also, all of those requirements did hold true. |
@adhiravishankar I'm pretty positive it's an issue with Cocoapods, I've checked on two computers with Xcode 8 and also Travis isn't complaining. I'm going to leave this issue up for a bit because there will be many upgraders over the next few weeks that run into the same problem. |
@RamboLouis try updating to cocoapods 1.1.0.rc.2 with:
|
@robertjpayne Thanks for the quick reply. After installing updating cocoapods to 1.1.0.rc.2 and clearing my cache with Thanks for the help! To reiterate:
|
@sahandnayebaziz Thank you. I'm trying. |
@RamboLouis awesome. Ping back if you have any trouble |
@Chris-Corea I'm going to leave this issue open for a little bit until Cocoapods gets their release out as its going to trip up a lot of people. |
I have fixed by directly point to the git link within Podfile to fix the 16 errors. |
@Onetaway Can you please post up your Xcode version, Cocoapods version and project's Swift version? I think a lot of people are having issues because they are trying to use the v3.0.0 with Swift 2.3. |
@kevinlee85 curious why you had to pin it to master branch, what version of Cocoapods are you running? |
Simulator a ErrorProject cash and log: dyld: Library not loaded: @rpath/SnapKit.framework/SnapKit XcodeVersion: 8.0 (8A218a) |
I got error like @Onetaway https://puu.sh/rgl1k/43f4684095.png Pod version: 1.1.0.rc.2 In SnapKit setting "Use Legacy Swift Language Version" set as "NO" |
I use: then: now it's ok! |
@xx11dragon @lifez are both of you 100% sure your project is set to use Swift 3.0? |
@robertjpayne right i just convert to swift 3.0 |
@lifez and it still persists? Can you share your project by chance or too confidential? I can't repro this issue unless I'm running old Cocoapods. Can you triple check |
@robertjpayne Yes swift3.0, solution: target-Build Phases- add Copy Files "SnapKit.framework".hhh |
@xx11dragon weird, sounds like Cocoapods isn't integrating properly if the fix is to manually copy the framework. It should be doing that for you. 100% sure you are using v1.1.0.rc2? Ruby will allow multiple versions of the same gem to be installed. |
@robertjpayne should be right... |
@xx11dragon it should say 1.1.0.rc2 not beta.2
You need to update! |
@robertjpayne so sorry... |
@robertjpayne delete all pod and pod install again it work Thank you for attention |
The other approach (using the rc version) I kept running into issues on pod install:
Manually cloning the cocoapod repo or using pod repo add didn't work either. Uninstalling cocoapods, reinstalling 1.0.1 and pointing to SnapKit repo in Podfile did the trick for me. |
My class didn't have I tried everything above and didn't help. After adding the import, it worked =S |
@playlive it worked! thank u!:) |
Closing this becauseI believe this is now fixed. |
Hey robert fix it for ya? Well I wouldn't made that choice who the hell
are u
…On Monday, April 10, 2017, Robert Payne ***@***.***> wrote:
Closing this becauseI believe this is now fixed.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#300 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AJqjoNx_opue9XqlgT4cXjDK0vvwwgd9ks5ruge9gaJpZM4J9XAl>
.
--
Sent from Gmail Mobile
|
New Issue Checklist
Issue Info
Issue Description
Using Xcode 8 and Swift 3, my project fails to compile SnapKit and calls out 16 different issues (all but one are "Extraneous argument label 'some_label' in call").
For example, in Constraint.swift line 129 I see the following:
let layoutConstant: CGFloat = self.constant.constraintConstantTargetValueFor(layoutAttribute: layoutToAttribute)
Which shouldn't cause a compiler error because the most recent code in the 3.0 tag does explicitly call for an argument label in the
constraintConstantTargetValueFor()
method.However, the code pulled down from a
pod install
differs from the code in the 3.0 tag as seen in GitHub. Here's the function signature I see in the Pod's ConstraintConstantTarget.swift file on line 45:internal func constraintConstantTargetValueFor(_ layoutAttribute: NSLayoutAttribute) -> CGFloat
I'm not particularly familiar with CocoaPods, but it seems like the code isn't in sync.
The text was updated successfully, but these errors were encountered: