Skip to content
This repository was archived by the owner on Jan 13, 2022. It is now read-only.

Commit c3aece3

Browse files
author
Patrick Chamelo
committed
Merge pull request #127 from facebook/nscoding/podfix
Fix Xcode 7.1 build errors
2 parents 8fdb3a5 + 8ff8074 commit c3aece3

4 files changed

Lines changed: 30 additions & 14 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## 2.0.6
6+
7+
- Added modulemap and podspec fixes to build with Xcode 7.1 (#127)
8+
59
## 2.0.5
610

711
- Swift 2.0 (#111, #120) (Thanks to @pietbrauer and @grantjk)
@@ -33,14 +37,10 @@ All notable changes to this project will be documented in this file.
3337

3438
## 1.8.1
3539

36-
### Fixed
37-
3840
- Prevent mangling of C function names when compiled with a C++ compiler. (#79)
3941

4042
## 1.8.0
4143

42-
### Changed
43-
4444
- The default directories for snapshots images are now **ReferenceImages_32** (32bit) and **ReferenceImages_64** (64bit) and the suffix depends on the architecture when the test is running. (#77)
4545
- If a test fails for a given suffix, it will try to load and compare all other suffixes before failing.
4646
- Added assertion on setRecordMode. (#76)

FBSnapshotTestCase.modulemap

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
framework module FBSnapshotTestCase {
2+
umbrella header "FBSnapshotTestCase.h"
3+
4+
export *
5+
module * { export * }
6+
7+
header "FBSnapshotTestCasePlatform.h"
8+
header "FBSnapshotTestCase.h"
9+
10+
private header "UIImage+Compare.h"
11+
private header "UIImage+Diff.h"
12+
private header "UIImage+Snapshot.h"
13+
private header "FBSnapshotTestController.h"
14+
}
15+

FBSnapshotTestCase.podspec

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "FBSnapshotTestCase"
3-
s.version = "2.0.5"
3+
s.version = "2.0.6"
44
s.summary = "Snapshot view unit tests for iOS"
55
s.description = <<-DESC
66
A "snapshot test case" takes a configured UIView or CALayer
@@ -16,13 +16,14 @@ Pod::Spec.new do |s|
1616
:tag => s.version.to_s }
1717
s.platform = :ios, '7.0'
1818
s.requires_arc = true
19-
s.framework = 'XCTest'
19+
s.frameworks = 'XCTest','UIKit','Foundation','QuartzCore'
2020
s.pod_target_xcconfig = { 'ENABLE_BITCODE' => 'NO' }
21-
s.public_header_files = ['FBSnapshotTestCase/FBSnapshotTestCase.h', 'FBSnapshotTestCase/FBSnapshotTestCasePlatform.h']
22-
s.private_header_files = ['FBSnapshotTestCase/FBSnapshotTestController.h', 'FBSnapshotTestCase/UIImage+Compare.h', 'FBSnapshotTestCase/UIImage+Diff.h']
2321
s.default_subspecs = 'SwiftSupport'
22+
s.module_map = 'FBSnapshotTestCase.modulemap'
2423
s.subspec 'Core' do |cs|
25-
cs.source_files = 'FBSnapshotTestCase/**/*.{h,m}'
24+
cs.source_files = 'FBSnapshotTestCase/**/*.{h,m}', 'FBSnapshotTestCase/*.{h,m}'
25+
cs.public_header_files = 'FBSnapshotTestCase/FBSnapshotTestCase.h','FBSnapshotTestCase/FBSnapshotTestCasePlatform.h'
26+
cs.private_header_files = 'FBSnapshotTestCase/FBSnapshotTestController.h','FBSnapshotTestCase/Categories/UIImage+Compare.h','FBSnapshotTestCase/Categories/UIImage+Diff.h','FBSnapshotTestCase/Categories/UIImage+Snapshot.h'
2627
end
2728
s.subspec 'SwiftSupport' do |cs|
2829
cs.dependency 'FBSnapshotTestCase/Core'
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
PODS:
2-
- FBSnapshotTestCase (2.0.5):
3-
- FBSnapshotTestCase/SwiftSupport (= 2.0.5)
4-
- FBSnapshotTestCase/Core (2.0.5)
5-
- FBSnapshotTestCase/SwiftSupport (2.0.5):
2+
- FBSnapshotTestCase (2.0.6):
3+
- FBSnapshotTestCase/SwiftSupport (= 2.0.6)
4+
- FBSnapshotTestCase/Core (2.0.6)
5+
- FBSnapshotTestCase/SwiftSupport (2.0.6):
66
- FBSnapshotTestCase/Core
77

88
DEPENDENCIES:
@@ -13,6 +13,6 @@ EXTERNAL SOURCES:
1313
:path: ".."
1414

1515
SPEC CHECKSUMS:
16-
FBSnapshotTestCase: 6917deb01d0556dd544536f9eb34e0cf26f904d5
16+
FBSnapshotTestCase: f53793e19b2782f2948e8597b03ec2bb5aedf5cd
1717

1818
COCOAPODS: 0.39.0

0 commit comments

Comments
 (0)