From 7ef4a5d509539e3f5e9b4b4d2a2dc7799445e1eb Mon Sep 17 00:00:00 2001 From: Ce Zheng Date: Tue, 29 Sep 2015 18:15:34 +0900 Subject: [PATCH 01/10] temp fix for build & test in Xcode 7 --- xcode-editor.xcodeproj/project.pbxproj | 50 +++++++++++++------------- 1 file changed, 24 insertions(+), 26 deletions(-) diff --git a/xcode-editor.xcodeproj/project.pbxproj b/xcode-editor.xcodeproj/project.pbxproj index 2d4458b..7fcf27d 100644 --- a/xcode-editor.xcodeproj/project.pbxproj +++ b/xcode-editor.xcodeproj/project.pbxproj @@ -9,16 +9,6 @@ /* Begin PBXBuildFile section */ 6B3ACFE114F8A2FE00BCFE81 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6BC10164147775A40055CF03 /* Cocoa.framework */; }; 6BCED6E81A4A61DC0005596F /* XcodeEditor.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6B3ACFE014F8A2FE00BCFE81 /* XcodeEditor.framework */; }; - 6BCED6EE1A4A62760005596F /* Person.impl in Resources */ = {isa = PBXBuildFile; fileRef = BA79848C44BAD3669D8B787E /* Person.impl */; }; - 6BCED6EF1A4A62760005596F /* goat-funny.png in Resources */ = {isa = PBXBuildFile; fileRef = BA798924D39B66695026C637 /* goat-funny.png */; }; - 6BCED6F01A4A62760005596F /* HelloBoxy.zip in Resources */ = {isa = PBXBuildFile; fileRef = BA798943BA7D1C740F0A098F /* HelloBoxy.zip */; }; - 6BCED6F11A4A62760005596F /* HelloWorldLayer.impl in Resources */ = {isa = PBXBuildFile; fileRef = BA7982C1A359AA930F934231 /* HelloWorldLayer.impl */; }; - 6BCED6F21A4A62760005596F /* HelloWorldLayer.header in Resources */ = {isa = PBXBuildFile; fileRef = BA798C8AB338121AFFE692F8 /* HelloWorldLayer.header */; }; - 6BCED6F31A4A62760005596F /* ESA.Sales.Foobar.xib in Resources */ = {isa = PBXBuildFile; fileRef = BA798903FC8864C4CB08B7FF /* ESA.Sales.Foobar.xib */; }; - 6BCED6F41A4A62760005596F /* expanz-iOS-SDK.zip in Resources */ = {isa = PBXBuildFile; fileRef = BA798257DC8C1D51244A87F2 /* expanz-iOS-SDK.zip */; }; - 6BCED6F51A4A62760005596F /* ESA_Sales_Foobar_ViewController.header in Resources */ = {isa = PBXBuildFile; fileRef = BA798E7947765A032AB118BA /* ESA_Sales_Foobar_ViewController.header */; }; - 6BCED6F61A4A62760005596F /* ESA_Sales_Foobar_ViewController.impl in Resources */ = {isa = PBXBuildFile; fileRef = BA798EC5D7AFB1BC79B1934E /* ESA_Sales_Foobar_ViewController.impl */; }; - 6BCED6F71A4A62760005596F /* project.pbxproj in Resources */ = {isa = PBXBuildFile; fileRef = BA79897F0241177A8F8C932B /* project.pbxproj */; }; 6BCED6FC1A4A628D0005596F /* XCGroupTests.m in Sources */ = {isa = PBXBuildFile; fileRef = BA7989499B6F59EEC2E1AA41 /* XCGroupTests.m */; }; 6BCED6FD1A4A62910005596F /* XCTargetTests.m in Sources */ = {isa = PBXBuildFile; fileRef = BA798974A01772350D7C81BD /* XCTargetTests.m */; }; 6BCED6FE1A4A62950005596F /* XcodeFileReferenceTypeTests.m in Sources */ = {isa = PBXBuildFile; fileRef = BA798D6F34B9A560E3D689B3 /* XcodeFileReferenceTypeTests.m */; }; @@ -26,6 +16,15 @@ 6BCED7001A4A629D0005596F /* XCProjectTests.m in Sources */ = {isa = PBXBuildFile; fileRef = BA798CFD524E5A3CF155C816 /* XCProjectTests.m */; }; 6BCED7011A4A62A00005596F /* XCClassDefinitionTests.m in Sources */ = {isa = PBXBuildFile; fileRef = BA7984685319A7BB1B37DBE9 /* XCClassDefinitionTests.m */; }; 6BCED7031A4A62B00005596F /* XCKeyBuilderTests.m in Sources */ = {isa = PBXBuildFile; fileRef = BA798BD3F30B4E39066F8108 /* XCKeyBuilderTests.m */; }; + 797A005A1BBA8D40002C904B /* Person.impl in Resources */ = {isa = PBXBuildFile; fileRef = BA79848C44BAD3669D8B787E /* Person.impl */; settings = {ASSET_TAGS = (); }; }; + 797A005B1BBA8D40002C904B /* goat-funny.png in Resources */ = {isa = PBXBuildFile; fileRef = BA798924D39B66695026C637 /* goat-funny.png */; settings = {ASSET_TAGS = (); }; }; + 797A005C1BBA8D40002C904B /* HelloBoxy.zip in Resources */ = {isa = PBXBuildFile; fileRef = BA798943BA7D1C740F0A098F /* HelloBoxy.zip */; settings = {ASSET_TAGS = (); }; }; + 797A005D1BBA8D40002C904B /* HelloWorldLayer.impl in Resources */ = {isa = PBXBuildFile; fileRef = BA7982C1A359AA930F934231 /* HelloWorldLayer.impl */; settings = {ASSET_TAGS = (); }; }; + 797A005E1BBA8D40002C904B /* HelloWorldLayer.header in Resources */ = {isa = PBXBuildFile; fileRef = BA798C8AB338121AFFE692F8 /* HelloWorldLayer.header */; settings = {ASSET_TAGS = (); }; }; + 797A00601BBA8D40002C904B /* expanz-iOS-SDK.zip in Resources */ = {isa = PBXBuildFile; fileRef = BA798257DC8C1D51244A87F2 /* expanz-iOS-SDK.zip */; settings = {ASSET_TAGS = (); }; }; + 797A00611BBA8D40002C904B /* ESA_Sales_Foobar_ViewController.header in Resources */ = {isa = PBXBuildFile; fileRef = BA798E7947765A032AB118BA /* ESA_Sales_Foobar_ViewController.header */; settings = {ASSET_TAGS = (); }; }; + 797A00621BBA8D40002C904B /* ESA_Sales_Foobar_ViewController.impl in Resources */ = {isa = PBXBuildFile; fileRef = BA798EC5D7AFB1BC79B1934E /* ESA_Sales_Foobar_ViewController.impl */; settings = {ASSET_TAGS = (); }; }; + 797A00631BBA8D40002C904B /* project.pbxproj in Resources */ = {isa = PBXBuildFile; fileRef = BA79897F0241177A8F8C932B /* project.pbxproj */; settings = {ASSET_TAGS = (); }; }; BA79809B196A253223139967 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = BA798378F006ADD44A37C678 /* InfoPlist.strings */; }; BA7980D47618535CEEE56C07 /* XcodeSourceFileType.h in Headers */ = {isa = PBXBuildFile; fileRef = BA798CF27DA49D73EBE0FCB7 /* XcodeSourceFileType.h */; settings = {ATTRIBUTES = (Public, ); }; }; BA7981663E00E804C25FDA0D /* XCProject.m in Sources */ = {isa = PBXBuildFile; fileRef = BA7989AC9710D456572783C7 /* XCProject.m */; }; @@ -39,8 +38,8 @@ BA7984763E39F64955CFE6F5 /* XcodeMemberType.h in Headers */ = {isa = PBXBuildFile; fileRef = BA798C11E473C251F07B0DAA /* XcodeMemberType.h */; settings = {ATTRIBUTES = (Public, ); }; }; BA7984F6EE4FA90717414543 /* XCProject+SubProject.m in Sources */ = {isa = PBXBuildFile; fileRef = BA798C57D9B8610BFECB9528 /* XCProject+SubProject.m */; }; BA79857B12A10B9BFBF3C929 /* XCAbstractDefinition.m in Sources */ = {isa = PBXBuildFile; fileRef = BA798287F70884A45C9F3721 /* XCAbstractDefinition.m */; }; - BA7985C5136218B0D782F7F1 /* XCProject+SubProject.h in Headers */ = {isa = PBXBuildFile; fileRef = BA7986459784ADE55A4B7CAC /* XCProject+SubProject.h */; }; - BA7985C665CCF83437B2231E /* XCProjectBuildConfig.h in Headers */ = {isa = PBXBuildFile; fileRef = BA798DCCBF81FADC37488A36 /* XCProjectBuildConfig.h */; }; + BA7985C5136218B0D782F7F1 /* XCProject+SubProject.h in Headers */ = {isa = PBXBuildFile; fileRef = BA7986459784ADE55A4B7CAC /* XCProject+SubProject.h */; settings = {ATTRIBUTES = (Public, ); }; }; + BA7985C665CCF83437B2231E /* XCProjectBuildConfig.h in Headers */ = {isa = PBXBuildFile; fileRef = BA798DCCBF81FADC37488A36 /* XCProjectBuildConfig.h */; settings = {ATTRIBUTES = (Public, ); }; }; BA79861FCDBD84679CA89D9E /* XCKeyBuilder.m in Sources */ = {isa = PBXBuildFile; fileRef = BA798DB7EBF603A22E7334BF /* XCKeyBuilder.m */; }; BA79862308DF0F7F984AF86E /* XCProjectBuildConfig.m in Sources */ = {isa = PBXBuildFile; fileRef = BA79868C3DE682529FB4B76E /* XCProjectBuildConfig.m */; }; BA798641126C8C9498C21843 /* XCSourceFile.h in Headers */ = {isa = PBXBuildFile; fileRef = BA798B392E07F43F5E0E77FC /* XCSourceFile.h */; settings = {ATTRIBUTES = (Public, ); }; }; @@ -60,7 +59,7 @@ BA798BE4876F847D0F1BA266 /* XCSourceFileDefinition.h in Headers */ = {isa = PBXBuildFile; fileRef = BA798C2F90A12BFEE77EFA5D /* XCSourceFileDefinition.h */; settings = {ATTRIBUTES = (Public, ); }; }; BA798DC320D5F6F188C112B3 /* XCKeyBuilder.h in Headers */ = {isa = PBXBuildFile; fileRef = BA798909AC4D1FCE033E64C5 /* XCKeyBuilder.h */; settings = {ATTRIBUTES = (Public, ); }; }; BA798EFC5F24AC9FD857373C /* XCFrameworkDefinition.h in Headers */ = {isa = PBXBuildFile; fileRef = BA7986BC9EE998925B797690 /* XCFrameworkDefinition.h */; settings = {ATTRIBUTES = (Public, ); }; }; - BA798F131E3B0412BEE23CA3 /* XcodeEditor.h in Headers */ = {isa = PBXBuildFile; fileRef = BA79888A08A5739C728633D2 /* XcodeEditor.h */; }; + BA798F131E3B0412BEE23CA3 /* XcodeEditor.h in Headers */ = {isa = PBXBuildFile; fileRef = BA79888A08A5739C728633D2 /* XcodeEditor.h */; settings = {ATTRIBUTES = (Public, ); }; }; BA798F6617C56888653CE018 /* XcodeEditor-Prefix.pch in Headers */ = {isa = PBXBuildFile; fileRef = BA798CECA2420D48B499842E /* XcodeEditor-Prefix.pch */; }; /* End PBXBuildFile section */ @@ -352,12 +351,12 @@ BA798EFC5F24AC9FD857373C /* XCFrameworkDefinition.h in Headers */, BA798A3F4DCBD5DD024B1147 /* XcodeGroupMember.h in Headers */, BA798AD506D19B5D3FB6DE4E /* XCAbstractDefinition.h in Headers */, - BA798F131E3B0412BEE23CA3 /* XcodeEditor.h in Headers */, - BA7985C5136218B0D782F7F1 /* XCProject+SubProject.h in Headers */, BA79825A7D7CB5AD4EE31A6C /* XCGroup.h in Headers */, BA79845EF211493263B4D0FC /* XCTarget.h in Headers */, - BA798BE4876F847D0F1BA266 /* XCSourceFileDefinition.h in Headers */, + BA798F131E3B0412BEE23CA3 /* XcodeEditor.h in Headers */, + BA7985C5136218B0D782F7F1 /* XCProject+SubProject.h in Headers */, BA7985C665CCF83437B2231E /* XCProjectBuildConfig.h in Headers */, + BA798BE4876F847D0F1BA266 /* XCSourceFileDefinition.h in Headers */, BA7988ABB09415FEE5070B38 /* XCXibDefinition.h in Headers */, BA7987C8FAAD4E3225D7DDC3 /* XCFileOperationQueue.h in Headers */, ); @@ -440,16 +439,6 @@ isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( - 6BCED6F41A4A62760005596F /* expanz-iOS-SDK.zip in Resources */, - 6BCED6F11A4A62760005596F /* HelloWorldLayer.impl in Resources */, - 6BCED6F51A4A62760005596F /* ESA_Sales_Foobar_ViewController.header in Resources */, - 6BCED6F01A4A62760005596F /* HelloBoxy.zip in Resources */, - 6BCED6EF1A4A62760005596F /* goat-funny.png in Resources */, - 6BCED6EE1A4A62760005596F /* Person.impl in Resources */, - 6BCED6F61A4A62760005596F /* ESA_Sales_Foobar_ViewController.impl in Resources */, - 6BCED6F71A4A62760005596F /* project.pbxproj in Resources */, - 6BCED6F21A4A62760005596F /* HelloWorldLayer.header in Resources */, - 6BCED6F31A4A62760005596F /* ESA.Sales.Foobar.xib in Resources */, BA79809B196A253223139967 /* InfoPlist.strings in Resources */, ); runOnlyForDeploymentPostprocessing = 0; @@ -458,6 +447,15 @@ isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( + 797A005C1BBA8D40002C904B /* HelloBoxy.zip in Resources */, + 797A005D1BBA8D40002C904B /* HelloWorldLayer.impl in Resources */, + 797A005E1BBA8D40002C904B /* HelloWorldLayer.header in Resources */, + 797A00631BBA8D40002C904B /* project.pbxproj in Resources */, + 797A00611BBA8D40002C904B /* ESA_Sales_Foobar_ViewController.header in Resources */, + 797A005A1BBA8D40002C904B /* Person.impl in Resources */, + 797A00621BBA8D40002C904B /* ESA_Sales_Foobar_ViewController.impl in Resources */, + 797A00601BBA8D40002C904B /* expanz-iOS-SDK.zip in Resources */, + 797A005B1BBA8D40002C904B /* goat-funny.png in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; From 0de406ff80d36961c70170d304d406ffe0652e06 Mon Sep 17 00:00:00 2001 From: Ce Zheng Date: Tue, 29 Sep 2015 18:23:54 +0900 Subject: [PATCH 02/10] add missing header for subprojects --- xcode-editor.xcodeproj/project.pbxproj | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xcode-editor.xcodeproj/project.pbxproj b/xcode-editor.xcodeproj/project.pbxproj index 7fcf27d..c1768af 100644 --- a/xcode-editor.xcodeproj/project.pbxproj +++ b/xcode-editor.xcodeproj/project.pbxproj @@ -25,6 +25,7 @@ 797A00611BBA8D40002C904B /* ESA_Sales_Foobar_ViewController.header in Resources */ = {isa = PBXBuildFile; fileRef = BA798E7947765A032AB118BA /* ESA_Sales_Foobar_ViewController.header */; settings = {ASSET_TAGS = (); }; }; 797A00621BBA8D40002C904B /* ESA_Sales_Foobar_ViewController.impl in Resources */ = {isa = PBXBuildFile; fileRef = BA798EC5D7AFB1BC79B1934E /* ESA_Sales_Foobar_ViewController.impl */; settings = {ASSET_TAGS = (); }; }; 797A00631BBA8D40002C904B /* project.pbxproj in Resources */ = {isa = PBXBuildFile; fileRef = BA79897F0241177A8F8C932B /* project.pbxproj */; settings = {ASSET_TAGS = (); }; }; + 797A00651BBA901A002C904B /* XCSubProjectDefinition.h in Headers */ = {isa = PBXBuildFile; fileRef = BA798516EBADF7760937A8D6 /* XCSubProjectDefinition.h */; settings = {ATTRIBUTES = (Public, ); }; }; BA79809B196A253223139967 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = BA798378F006ADD44A37C678 /* InfoPlist.strings */; }; BA7980D47618535CEEE56C07 /* XcodeSourceFileType.h in Headers */ = {isa = PBXBuildFile; fileRef = BA798CF27DA49D73EBE0FCB7 /* XcodeSourceFileType.h */; settings = {ATTRIBUTES = (Public, ); }; }; BA7981663E00E804C25FDA0D /* XCProject.m in Sources */ = {isa = PBXBuildFile; fileRef = BA7989AC9710D456572783C7 /* XCProject.m */; }; @@ -358,6 +359,7 @@ BA7985C665CCF83437B2231E /* XCProjectBuildConfig.h in Headers */, BA798BE4876F847D0F1BA266 /* XCSourceFileDefinition.h in Headers */, BA7988ABB09415FEE5070B38 /* XCXibDefinition.h in Headers */, + 797A00651BBA901A002C904B /* XCSubProjectDefinition.h in Headers */, BA7987C8FAAD4E3225D7DDC3 /* XCFileOperationQueue.h in Headers */, ); runOnlyForDeploymentPostprocessing = 0; From 6bc0bb76f62e6a9c9cc818033199cf8d6a6d0fa4 Mon Sep 17 00:00:00 2001 From: Ce Zheng Date: Wed, 30 Sep 2015 18:32:25 +0900 Subject: [PATCH 03/10] add key property for XCProjectBuildConfig.h --- Source/XCProjectBuildConfig.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/XCProjectBuildConfig.h b/Source/XCProjectBuildConfig.h index d57911e..c6c6caa 100644 --- a/Source/XCProjectBuildConfig.h +++ b/Source/XCProjectBuildConfig.h @@ -22,7 +22,7 @@ NSMutableDictionary* _buildSettings; NSMutableDictionary* _xcconfigSettings; } - +@property(nonatomic, strong, readonly) NSString* key; @property(nonatomic, readonly) NSDictionary* specifiedBuildSettings; + (NSDictionary*)buildConfigurationsFromArray:(NSArray*)array inProject:(XCProject*)project; From 9e30fee3d12806e0f3734d6a690779fdcb2c6c8c Mon Sep 17 00:00:00 2001 From: Ce Zheng Date: Wed, 30 Sep 2015 18:44:00 +0900 Subject: [PATCH 04/10] support xcconfig --- Source/XcodeSourceFileType.h | 3 ++- Source/XcodeSourceFileType.m | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Source/XcodeSourceFileType.h b/Source/XcodeSourceFileType.h index 4b4059c..dbd7e33 100755 --- a/Source/XcodeSourceFileType.h +++ b/Source/XcodeSourceFileType.h @@ -35,7 +35,8 @@ typedef NS_OPTIONS(NSInteger, XcodeSourceFileType) ShellScript = 19, // no suffix Xcode seems to detect (text.script.sh) Markdown = 20, // .md (net.daringfileball.markdown) XMLPropertyList = 21, // .plist (text.plist.xml) - Storyboard = 22 // .storyboard (file.storyboard) + Storyboard = 22, // .storyboard (file.storyboard) + XCConfig = 23 // .xcconfig }; NSString* NSStringFromXCSourceFileType(XcodeSourceFileType type); diff --git a/Source/XcodeSourceFileType.m b/Source/XcodeSourceFileType.m index 287cfa3..8be1b74 100755 --- a/Source/XcodeSourceFileType.m +++ b/Source/XcodeSourceFileType.m @@ -41,8 +41,8 @@ @"text.script.sh" : @(ShellScript), @"net.daringfireball.markdown" : @(Markdown), @"text.plist.xml" : @(XMLPropertyList), - @"file.storyboard" : @(Storyboard) - + @"file.storyboard" : @(Storyboard), + @"text.xcconfig" : @(XCConfig) }; }); From 53e1c875b3eb1661cbd466f08b4a55ddf9b0b3ea Mon Sep 17 00:00:00 2001 From: Ce Zheng Date: Thu, 1 Oct 2015 18:13:09 +0900 Subject: [PATCH 05/10] Bug fix for finding xcconfig files in nested groups --- Source/XCProjectBuildConfig.m | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Source/XCProjectBuildConfig.m b/Source/XCProjectBuildConfig.m index 1ebed09..f5555b2 100644 --- a/Source/XCProjectBuildConfig.m +++ b/Source/XCProjectBuildConfig.m @@ -49,7 +49,10 @@ + (NSDictionary*)buildConfigurationsFromArray:(NSArray*)array inProject:(XCProje if (![[NSFileManager defaultManager] fileExistsAtPath:path]) { XCGroup* group = [project groupWithSourceFile:configurationFile]; - path = [[group pathRelativeToParent] stringByAppendingPathComponent:path]; + do { + path = [[group pathRelativeToParent] stringByAppendingPathComponent:path] ? :path; + group = [group parentGroup]; + } while (group); } if (![[NSFileManager defaultManager] fileExistsAtPath:path]) From cd1e757e3630de9facccbbeb0a54045626652b2d Mon Sep 17 00:00:00 2001 From: Ce Zheng Date: Wed, 14 Oct 2015 19:44:15 +0900 Subject: [PATCH 06/10] define module for framework --- xcode-editor.xcodeproj/project.pbxproj | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xcode-editor.xcodeproj/project.pbxproj b/xcode-editor.xcodeproj/project.pbxproj index c1768af..313fcbe 100644 --- a/xcode-editor.xcodeproj/project.pbxproj +++ b/xcode-editor.xcodeproj/project.pbxproj @@ -554,6 +554,7 @@ buildSettings = { ARCHS = "$(ARCHS_STANDARD_64_BIT)"; CLANG_ENABLE_OBJC_ARC = YES; + DEFINES_MODULE = YES; DYLIB_COMPATIBILITY_VERSION = 1; DYLIB_CURRENT_VERSION = 1; FRAMEWORK_SEARCH_PATHS = ( @@ -581,6 +582,7 @@ buildSettings = { ARCHS = "$(ARCHS_STANDARD_64_BIT)"; CLANG_ENABLE_OBJC_ARC = YES; + DEFINES_MODULE = YES; DYLIB_COMPATIBILITY_VERSION = 1; DYLIB_CURRENT_VERSION = 1; FRAMEWORK_SEARCH_PATHS = ( From e13d916487b9f4d9a5096ca391b80277f9b2269b Mon Sep 17 00:00:00 2001 From: Ce Zheng Date: Wed, 14 Oct 2015 19:55:31 +0900 Subject: [PATCH 07/10] add missing headers to umbrella --- Source/XcodeEditor.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/XcodeEditor.h b/Source/XcodeEditor.h index c524269..6aedaee 100644 --- a/Source/XcodeEditor.h +++ b/Source/XcodeEditor.h @@ -21,3 +21,6 @@ #import "XCSubProjectDefinition.h" #import "XCTarget.h" #import "XCXibDefinition.h" +#import "XCKeyBuilder.h" +#import "XCProject+SubProject.h" +#import "XCProjectBuildConfig.h" From 0df67a8c672c3ffbd79ca89873f47eb31b9a1669 Mon Sep 17 00:00:00 2001 From: Ce Zheng Date: Mon, 26 Oct 2015 19:09:19 +0900 Subject: [PATCH 08/10] remove NSLog output in Release build --- Source/Resources/XcodeEditor-Prefix.pch | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/Resources/XcodeEditor-Prefix.pch b/Source/Resources/XcodeEditor-Prefix.pch index 1c0b263..d5c9e0b 100644 --- a/Source/Resources/XcodeEditor-Prefix.pch +++ b/Source/Resources/XcodeEditor-Prefix.pch @@ -8,4 +8,6 @@ #endif - +#if !DEBUG +#define NSLog(...) +#endif From 39310d5815bff7bda483a372242f3d13642d6e57 Mon Sep 17 00:00:00 2001 From: Ce Zheng Date: Mon, 2 Nov 2015 16:49:42 +0900 Subject: [PATCH 09/10] update project setting to Xcode 7.1 recommended --- .../xcshareddata/xcschemes/Pods.xcscheme | 22 ++++++-- Source/Resources/XcodeEditor-Info.plist | 2 +- XcodeEditorTests/Info.plist | 2 +- xcode-editor.xcodeproj/project.pbxproj | 55 ++++++++++++++----- .../xcschemes/XcodeEditor.xcscheme | 12 ++-- 5 files changed, 68 insertions(+), 25 deletions(-) diff --git a/Pods/Pods.xcodeproj/xcshareddata/xcschemes/Pods.xcscheme b/Pods/Pods.xcodeproj/xcshareddata/xcschemes/Pods.xcscheme index cee700c..c637f28 100644 --- a/Pods/Pods.xcodeproj/xcshareddata/xcschemes/Pods.xcscheme +++ b/Pods/Pods.xcodeproj/xcshareddata/xcschemes/Pods.xcscheme @@ -1,6 +1,6 @@ + shouldUseLaunchSchemeArgsEnv = "YES"> + + + + + + CFBundleIconFile CFBundleIdentifier - jb.${PRODUCT_NAME:rfc1034identifier} + $(PRODUCT_BUNDLE_IDENTIFIER) CFBundleInfoDictionaryVersion 6.0 CFBundleName diff --git a/XcodeEditorTests/Info.plist b/XcodeEditorTests/Info.plist index 5588cd4..ba72822 100644 --- a/XcodeEditorTests/Info.plist +++ b/XcodeEditorTests/Info.plist @@ -7,7 +7,7 @@ CFBundleExecutable $(EXECUTABLE_NAME) CFBundleIdentifier - codemonastery.com.$(PRODUCT_NAME:rfc1034identifier) + $(PRODUCT_BUNDLE_IDENTIFIER) CFBundleInfoDictionaryVersion 6.0 CFBundleName diff --git a/xcode-editor.xcodeproj/project.pbxproj b/xcode-editor.xcodeproj/project.pbxproj index 313fcbe..d3e8aa1 100644 --- a/xcode-editor.xcodeproj/project.pbxproj +++ b/xcode-editor.xcodeproj/project.pbxproj @@ -16,15 +16,15 @@ 6BCED7001A4A629D0005596F /* XCProjectTests.m in Sources */ = {isa = PBXBuildFile; fileRef = BA798CFD524E5A3CF155C816 /* XCProjectTests.m */; }; 6BCED7011A4A62A00005596F /* XCClassDefinitionTests.m in Sources */ = {isa = PBXBuildFile; fileRef = BA7984685319A7BB1B37DBE9 /* XCClassDefinitionTests.m */; }; 6BCED7031A4A62B00005596F /* XCKeyBuilderTests.m in Sources */ = {isa = PBXBuildFile; fileRef = BA798BD3F30B4E39066F8108 /* XCKeyBuilderTests.m */; }; - 797A005A1BBA8D40002C904B /* Person.impl in Resources */ = {isa = PBXBuildFile; fileRef = BA79848C44BAD3669D8B787E /* Person.impl */; settings = {ASSET_TAGS = (); }; }; - 797A005B1BBA8D40002C904B /* goat-funny.png in Resources */ = {isa = PBXBuildFile; fileRef = BA798924D39B66695026C637 /* goat-funny.png */; settings = {ASSET_TAGS = (); }; }; - 797A005C1BBA8D40002C904B /* HelloBoxy.zip in Resources */ = {isa = PBXBuildFile; fileRef = BA798943BA7D1C740F0A098F /* HelloBoxy.zip */; settings = {ASSET_TAGS = (); }; }; - 797A005D1BBA8D40002C904B /* HelloWorldLayer.impl in Resources */ = {isa = PBXBuildFile; fileRef = BA7982C1A359AA930F934231 /* HelloWorldLayer.impl */; settings = {ASSET_TAGS = (); }; }; - 797A005E1BBA8D40002C904B /* HelloWorldLayer.header in Resources */ = {isa = PBXBuildFile; fileRef = BA798C8AB338121AFFE692F8 /* HelloWorldLayer.header */; settings = {ASSET_TAGS = (); }; }; - 797A00601BBA8D40002C904B /* expanz-iOS-SDK.zip in Resources */ = {isa = PBXBuildFile; fileRef = BA798257DC8C1D51244A87F2 /* expanz-iOS-SDK.zip */; settings = {ASSET_TAGS = (); }; }; - 797A00611BBA8D40002C904B /* ESA_Sales_Foobar_ViewController.header in Resources */ = {isa = PBXBuildFile; fileRef = BA798E7947765A032AB118BA /* ESA_Sales_Foobar_ViewController.header */; settings = {ASSET_TAGS = (); }; }; - 797A00621BBA8D40002C904B /* ESA_Sales_Foobar_ViewController.impl in Resources */ = {isa = PBXBuildFile; fileRef = BA798EC5D7AFB1BC79B1934E /* ESA_Sales_Foobar_ViewController.impl */; settings = {ASSET_TAGS = (); }; }; - 797A00631BBA8D40002C904B /* project.pbxproj in Resources */ = {isa = PBXBuildFile; fileRef = BA79897F0241177A8F8C932B /* project.pbxproj */; settings = {ASSET_TAGS = (); }; }; + 797A005A1BBA8D40002C904B /* Person.impl in Resources */ = {isa = PBXBuildFile; fileRef = BA79848C44BAD3669D8B787E /* Person.impl */; }; + 797A005B1BBA8D40002C904B /* goat-funny.png in Resources */ = {isa = PBXBuildFile; fileRef = BA798924D39B66695026C637 /* goat-funny.png */; }; + 797A005C1BBA8D40002C904B /* HelloBoxy.zip in Resources */ = {isa = PBXBuildFile; fileRef = BA798943BA7D1C740F0A098F /* HelloBoxy.zip */; }; + 797A005D1BBA8D40002C904B /* HelloWorldLayer.impl in Resources */ = {isa = PBXBuildFile; fileRef = BA7982C1A359AA930F934231 /* HelloWorldLayer.impl */; }; + 797A005E1BBA8D40002C904B /* HelloWorldLayer.header in Resources */ = {isa = PBXBuildFile; fileRef = BA798C8AB338121AFFE692F8 /* HelloWorldLayer.header */; }; + 797A00601BBA8D40002C904B /* expanz-iOS-SDK.zip in Resources */ = {isa = PBXBuildFile; fileRef = BA798257DC8C1D51244A87F2 /* expanz-iOS-SDK.zip */; }; + 797A00611BBA8D40002C904B /* ESA_Sales_Foobar_ViewController.header in Resources */ = {isa = PBXBuildFile; fileRef = BA798E7947765A032AB118BA /* ESA_Sales_Foobar_ViewController.header */; }; + 797A00621BBA8D40002C904B /* ESA_Sales_Foobar_ViewController.impl in Resources */ = {isa = PBXBuildFile; fileRef = BA798EC5D7AFB1BC79B1934E /* ESA_Sales_Foobar_ViewController.impl */; }; + 797A00631BBA8D40002C904B /* project.pbxproj in Resources */ = {isa = PBXBuildFile; fileRef = BA79897F0241177A8F8C932B /* project.pbxproj */; }; 797A00651BBA901A002C904B /* XCSubProjectDefinition.h in Headers */ = {isa = PBXBuildFile; fileRef = BA798516EBADF7760937A8D6 /* XCSubProjectDefinition.h */; settings = {ATTRIBUTES = (Public, ); }; }; BA79809B196A253223139967 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = BA798378F006ADD44A37C678 /* InfoPlist.strings */; }; BA7980D47618535CEEE56C07 /* XcodeSourceFileType.h in Headers */ = {isa = PBXBuildFile; fileRef = BA798CF27DA49D73EBE0FCB7 /* XcodeSourceFileType.h */; settings = {ATTRIBUTES = (Public, ); }; }; @@ -410,7 +410,7 @@ 6BC10157147775A40055CF03 /* Project object */ = { isa = PBXProject; attributes = { - LastUpgradeCheck = 0430; + LastUpgradeCheck = 0710; ORGANIZATIONNAME = ""; TargetAttributes = { 6BCED6E11A4A61DC0005596F = { @@ -552,8 +552,8 @@ 6B3ACFED14F8A2FE00BCFE81 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { - ARCHS = "$(ARCHS_STANDARD_64_BIT)"; CLANG_ENABLE_OBJC_ARC = YES; + COMBINE_HIDPI_IMAGES = YES; DEFINES_MODULE = YES; DYLIB_COMPATIBILITY_VERSION = 1; DYLIB_CURRENT_VERSION = 1; @@ -572,6 +572,7 @@ INSTALL_PATH = "@executable_path/../Frameworks"; LIBRARY_SEARCH_PATHS = ""; ONLY_ACTIVE_ARCH = NO; + PRODUCT_BUNDLE_IDENTIFIER = "jb.${PRODUCT_NAME:rfc1034identifier}"; PRODUCT_NAME = "$(TARGET_NAME)"; WRAPPER_EXTENSION = framework; }; @@ -580,8 +581,8 @@ 6B3ACFEE14F8A2FE00BCFE81 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { - ARCHS = "$(ARCHS_STANDARD_64_BIT)"; CLANG_ENABLE_OBJC_ARC = YES; + COMBINE_HIDPI_IMAGES = YES; DEFINES_MODULE = YES; DYLIB_COMPATIBILITY_VERSION = 1; DYLIB_CURRENT_VERSION = 1; @@ -598,6 +599,7 @@ INSTALL_PATH = "@executable_path/../Frameworks"; LIBRARY_SEARCH_PATHS = ""; ONLY_ACTIVE_ARCH = NO; + PRODUCT_BUNDLE_IDENTIFIER = "jb.${PRODUCT_NAME:rfc1034identifier}"; PRODUCT_NAME = "$(TARGET_NAME)"; WRAPPER_EXTENSION = framework; }; @@ -607,11 +609,20 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; - ARCHS = "$(ARCHS_STANDARD_32_64_BIT)"; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; COPY_PHASE_STRIP = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; GCC_C_LANGUAGE_STANDARD = gnu99; GCC_DYNAMIC_NO_PIC = NO; GCC_ENABLE_OBJC_EXCEPTIONS = YES; + GCC_NO_COMMON_BLOCKS = YES; GCC_OPTIMIZATION_LEVEL = 0; GCC_PREPROCESSOR_DEFINITIONS = ( "DEBUG=1", @@ -622,6 +633,9 @@ GCC_WARN_64_TO_32_BIT_CONVERSION = YES; GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES; GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES; + GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; MACOSX_DEPLOYMENT_TARGET = 10.7; ONLY_ACTIVE_ARCH = YES; @@ -632,15 +646,26 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; - ARCHS = "$(ARCHS_STANDARD_32_64_BIT)"; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; COPY_PHASE_STRIP = YES; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_STRICT_OBJC_MSGSEND = YES; GCC_C_LANGUAGE_STANDARD = gnu99; GCC_ENABLE_OBJC_EXCEPTIONS = YES; + GCC_NO_COMMON_BLOCKS = YES; GCC_VERSION = com.apple.compilers.llvm.clang.1_0; GCC_WARN_64_TO_32_BIT_CONVERSION = YES; GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES; GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES; + GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; MACOSX_DEPLOYMENT_TARGET = 10.7; }; @@ -685,6 +710,7 @@ "$(inhertied)", "-all_load", ); + PRODUCT_BUNDLE_IDENTIFIER = "codemonastery.com.$(PRODUCT_NAME:rfc1034identifier)"; PRODUCT_NAME = "$(TARGET_NAME)"; SDKROOT = macosx; }; @@ -726,6 +752,7 @@ "$(inhertied)", "-all_load", ); + PRODUCT_BUNDLE_IDENTIFIER = "codemonastery.com.$(PRODUCT_NAME:rfc1034identifier)"; PRODUCT_NAME = "$(TARGET_NAME)"; SDKROOT = macosx; }; diff --git a/xcode-editor.xcodeproj/xcshareddata/xcschemes/XcodeEditor.xcscheme b/xcode-editor.xcodeproj/xcshareddata/xcschemes/XcodeEditor.xcscheme index 8219be1..e4a3a0f 100644 --- a/xcode-editor.xcodeproj/xcshareddata/xcschemes/XcodeEditor.xcscheme +++ b/xcode-editor.xcodeproj/xcshareddata/xcschemes/XcodeEditor.xcscheme @@ -1,5 +1,6 @@ + shouldUseLaunchSchemeArgsEnv = "YES"> @@ -47,15 +48,18 @@ ReferencedContainer = "container:xcode-editor.xcodeproj"> + + Date: Mon, 2 Nov 2015 16:49:59 +0900 Subject: [PATCH 10/10] fix linker error for Xcode 7.1 --- Source/XCProject.h | 2 -- Source/XCProject.m | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Source/XCProject.h b/Source/XCProject.h index 84e722d..cf06caf 100755 --- a/Source/XCProject.h +++ b/Source/XCProject.h @@ -21,8 +21,6 @@ @class XCSubProjectDefinition; @class XCProjectBuildConfig; -NSString* const XCProjectNotFoundException; - @interface XCProject : NSObject { @protected diff --git a/Source/XCProject.m b/Source/XCProject.m index 39faadb..4dff0f0 100755 --- a/Source/XCProject.m +++ b/Source/XCProject.m @@ -17,6 +17,7 @@ #import "XCFileOperationQueue.h" #import "XCProjectBuildConfig.h" +NSString* const XCProjectNotFoundException; @implementation XCProject