From fb81db1e38e99fa8e0b9e01f36f044e3a5adafcd Mon Sep 17 00:00:00 2001 From: kennytm Date: Wed, 27 Apr 2016 22:40:34 +0800 Subject: [PATCH] Do not allow bitcode on OS X target. Bitcode should be enabled for all targets except OS X. For Box this happens to be the same as Xcode 7.3's default (iOS = YES, OSX = NO), so the custom setting should just be deleted. --- Box.xcodeproj/project.pbxproj | 2 -- BoxTests/BoxTypeTests.swift | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/Box.xcodeproj/project.pbxproj b/Box.xcodeproj/project.pbxproj index d8b4cf6..4b5b763 100644 --- a/Box.xcodeproj/project.pbxproj +++ b/Box.xcodeproj/project.pbxproj @@ -400,7 +400,6 @@ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; COPY_PHASE_STRIP = NO; CURRENT_PROJECT_VERSION = 1; - ENABLE_BITCODE = YES; ENABLE_STRICT_OBJC_MSGSEND = YES; GCC_C_LANGUAGE_STANDARD = gnu99; GCC_DYNAMIC_NO_PIC = NO; @@ -448,7 +447,6 @@ COPY_PHASE_STRIP = YES; CURRENT_PROJECT_VERSION = 1; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - ENABLE_BITCODE = YES; ENABLE_NS_ASSERTIONS = NO; ENABLE_STRICT_OBJC_MSGSEND = YES; GCC_C_LANGUAGE_STANDARD = gnu99; diff --git a/BoxTests/BoxTypeTests.swift b/BoxTests/BoxTypeTests.swift index 36f7594..36ffd97 100644 --- a/BoxTests/BoxTypeTests.swift +++ b/BoxTests/BoxTypeTests.swift @@ -18,7 +18,7 @@ class BoxTypeTests: XCTestCase { func testMap() { let a = Box(1) - let b: Box = map(a, toString) + let b: Box = map(a) { String($0) } XCTAssertEqual(b.value, "1") } }