fastlane-old / snapshot

Automate taking localized screenshots of your iOS app on every device
https://fastlane.tools
1.96k stars 141 forks source link

Unable to import/use SnapshotHelper.swift in Objective-C project #441

Closed DipenPanchasara closed 8 years ago

DipenPanchasara commented 8 years ago

I configured snapshot and generated SnapshotHelper.swift, added it to my Test Target and writing following code in Test.m file throws error

XCUIApplication *app = [[XCUIApplication alloc] init];
[Snapshot setupSnapshot:app];
[app launch];

error : FastlaneDemoUITests.m:33:6: Use of undeclared identifier 'Snapshot'

It doesn't create ProductModule Header.

import "FastlaneDemo-Swift.h"

It also throws FastlaneDemoUITests.m:11:9: 'FastlaneDemo-Swift.h' file not found

XCode : 7.2 Defines Module : YES Product Module Name : FastlaneDemoUITests

kindly advise what to do?

markusfassbender commented 8 years ago

you can write your uitests also in swift, for me it was much easier althoug my app code is objective c

fastlane-bot commented 8 years ago

This issue was migrated to https://github.com/fastlane/fastlane/issues/1642. Please post all further comments there.

fastlane is now a mono repo, you can read more about the change in our blog post. All tools are now available in the fastlane main repo :rocket: