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

SwiftSupport L63 #148

Closed
niklassaers opened this Issue Feb 15, 2016 · 10 comments

Comments

Projects
None yet
7 participants
@niklassaers

When building, I get: 'Cannot convert value of type 'String' to expected argument type 'StaticString''

I have installed FBSnapshotTestCase 2.0.7 via CocoaPods, and have also tried commit ee57dee. I build with Xcode 7.3-beta3.

In my CococaPods file I have the following defined:

use_frameworks!
platform :ios, '8.0'

If I remove that line I get three errors for the following lines in FBSnapshotTestController.m:

#import <FBSnapshotTestCase/UIImage+Compare.h>
#import <FBSnapshotTestCase/UIImage+Diff.h>
#import <FBSnapshotTestCase/UIImage+Snapshot.h>

The error I get is: "Use of private header from outside its module"

When I build with Xcode 7.2.1 I don't get the StringLiteral error, but I do get the three last errors.

@niklassaers

This comment has been minimized.

Show comment
Hide comment
@niklassaers

niklassaers Feb 15, 2016

After reading through [this pull request](https://github.com/facebook/ios-snapshot-test-case/pull/141), I see you already have got the solution for the three import errors. Please accept that pull request. :-) So it's just the line 63 error remaining. I don't know the correct solution for this, but if someone else has the same problem, my workaround for now was to comment out that lie and just write a generic XCTFail in its place.

After reading through [this pull request](https://github.com/facebook/ios-snapshot-test-case/pull/141), I see you already have got the solution for the three import errors. Please accept that pull request. :-) So it's just the line 63 error remaining. I don't know the correct solution for this, but if someone else has the same problem, my workaround for now was to comment out that lie and just write a generic XCTFail in its place.

@nscoding

This comment has been minimized.

Show comment
Hide comment
@nscoding

nscoding Feb 18, 2016

Contributor

@niklassaers I am waiting for cocoapods 1.0 to go thru with the open PR.

Contributor

nscoding commented Feb 18, 2016

@niklassaers I am waiting for cocoapods 1.0 to go thru with the open PR.

@gregpardo

This comment has been minimized.

Show comment
Hide comment
@gregpardo

gregpardo Mar 1, 2016

Same issue. Waiting for cocoapods update I guess

Same issue. Waiting for cocoapods update I guess

@alper

This comment has been minimized.

Show comment
Hide comment
@alper

alper Apr 22, 2016

The entire thing does not build for me. Maybe there should be a guide how to setup a Swift project?
rg_snapshottests swift 2016-04-22 12-05-15

alper commented Apr 22, 2016

The entire thing does not build for me. Maybe there should be a guide how to setup a Swift project?
rg_snapshottests swift 2016-04-22 12-05-15

@kuron99

This comment has been minimized.

Show comment
Hide comment
@kuron99

kuron99 May 7, 2016

I am hitting this problem, too. Any progress or update?

kuron99 commented May 7, 2016

I am hitting this problem, too. Any progress or update?

@obuseme

This comment has been minimized.

Show comment
Hide comment
@obuseme

obuseme May 9, 2016

I'm hitting this problem as well.

obuseme commented May 9, 2016

I'm hitting this problem as well.

@nscoding

This comment has been minimized.

Show comment
Hide comment
@nscoding

nscoding May 9, 2016

Contributor

Still waiting on cocoapods I am afraid

Contributor

nscoding commented May 9, 2016

Still waiting on cocoapods I am afraid

@obuseme

This comment has been minimized.

Show comment
Hide comment
@obuseme

obuseme May 10, 2016

I was able to successfully install FBSnapshotTestCase with Carthage last night for a Swift project. I wrote it up here if anyone is interested: http://cleanswifter.com/fbsnapshottestcase-installation-carthage/

obuseme commented May 10, 2016

I was able to successfully install FBSnapshotTestCase with Carthage last night for a Swift project. I wrote it up here if anyone is interested: http://cleanswifter.com/fbsnapshottestcase-installation-carthage/

@fcy

This comment has been minimized.

Show comment
Hide comment
@fcy

fcy May 11, 2016

So CocoaPods 1.0 is live what is the issue it was supposed to fix? I'm getting the same problem using it.

Never mind. Using current master with #141 fixed my problems.

fcy commented May 11, 2016

So CocoaPods 1.0 is live what is the issue it was supposed to fix? I'm getting the same problem using it.

Never mind. Using current master with #141 fixed my problems.

@nscoding

This comment has been minimized.

Show comment
Hide comment
@nscoding

nscoding Jun 30, 2016

Contributor

great @fcy! I am going to close this one.

Contributor

nscoding commented Jun 30, 2016

great @fcy! I am going to close this one.

@nscoding nscoding closed this Jun 30, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment