Skip to content
This repository has been archived by the owner on Jun 8, 2023. It is now read-only.

Commit

Permalink
Merge pull request #153 from github/xcode-7
Browse files Browse the repository at this point in the history
Build under Xcode 7
  • Loading branch information
joshaber committed Sep 25, 2015
2 parents 6981c5b + 7d304e4 commit 4da137a
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 10 deletions.
13 changes: 12 additions & 1 deletion Rebel.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -506,8 +506,9 @@
D09AE4D515C5F45200ECAD10 /* Project object */ = {
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 0700;
LastTestingUpgradeCheck = 0510;
LastUpgradeCheck = 0620;
LastUpgradeCheck = 0700;
ORGANIZATIONNAME = GitHub;
};
buildConfigurationList = D09AE4D815C5F45200ECAD10 /* Build configuration list for PBXProject "Rebel" */;
Expand Down Expand Up @@ -610,6 +611,7 @@
isa = XCBuildConfiguration;
baseConfigurationReference = D08BB2DE15CB307200CC9868 /* Profile.xcconfig */;
buildSettings = {
GCC_NO_COMMON_BLOCKS = YES;
MACOSX_DEPLOYMENT_TARGET = 10.8;
};
name = Profile;
Expand All @@ -622,6 +624,7 @@
DYLIB_CURRENT_VERSION = 1;
FRAMEWORK_VERSION = A;
INFOPLIST_FILE = "Rebel/Rebel-Info.plist";
PRODUCT_BUNDLE_IDENTIFIER = "com.github.${PRODUCT_NAME:rfc1034identifier}";
WRAPPER_EXTENSION = framework;
};
name = Profile;
Expand All @@ -638,6 +641,7 @@
INFOPLIST_FILE = "RebelTests/RebelTests-Info.plist";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks";
MACOSX_DEPLOYMENT_TARGET = 10.9;
PRODUCT_BUNDLE_IDENTIFIER = "com.github.${PRODUCT_NAME:rfc1034identifier}";
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Profile;
Expand All @@ -646,6 +650,8 @@
isa = XCBuildConfiguration;
baseConfigurationReference = D08BB2DD15CB307200CC9868 /* Debug.xcconfig */;
buildSettings = {
ENABLE_TESTABILITY = YES;
GCC_NO_COMMON_BLOCKS = YES;
MACOSX_DEPLOYMENT_TARGET = 10.8;
ONLY_ACTIVE_ARCH = YES;
};
Expand All @@ -655,6 +661,7 @@
isa = XCBuildConfiguration;
baseConfigurationReference = D08BB2DF15CB307200CC9868 /* Release.xcconfig */;
buildSettings = {
GCC_NO_COMMON_BLOCKS = YES;
MACOSX_DEPLOYMENT_TARGET = 10.8;
};
name = Release;
Expand All @@ -667,6 +674,7 @@
DYLIB_CURRENT_VERSION = 1;
FRAMEWORK_VERSION = A;
INFOPLIST_FILE = "Rebel/Rebel-Info.plist";
PRODUCT_BUNDLE_IDENTIFIER = "com.github.${PRODUCT_NAME:rfc1034identifier}";
WRAPPER_EXTENSION = framework;
};
name = Debug;
Expand All @@ -679,6 +687,7 @@
DYLIB_CURRENT_VERSION = 1;
FRAMEWORK_VERSION = A;
INFOPLIST_FILE = "Rebel/Rebel-Info.plist";
PRODUCT_BUNDLE_IDENTIFIER = "com.github.${PRODUCT_NAME:rfc1034identifier}";
WRAPPER_EXTENSION = framework;
};
name = Release;
Expand All @@ -695,6 +704,7 @@
INFOPLIST_FILE = "RebelTests/RebelTests-Info.plist";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks";
MACOSX_DEPLOYMENT_TARGET = 10.9;
PRODUCT_BUNDLE_IDENTIFIER = "com.github.${PRODUCT_NAME:rfc1034identifier}";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
};
Expand All @@ -712,6 +722,7 @@
INFOPLIST_FILE = "RebelTests/RebelTests-Info.plist";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks";
MACOSX_DEPLOYMENT_TARGET = 10.9;
PRODUCT_BUNDLE_IDENTIFIER = "com.github.${PRODUCT_NAME:rfc1034identifier}";
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Release;
Expand Down
13 changes: 8 additions & 5 deletions Rebel.xcodeproj/xcshareddata/xcschemes/Rebel.xcscheme
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0620"
LastUpgradeVersion = "0700"
version = "2.0">
<BuildAction
parallelizeBuildables = "YES"
Expand Down Expand Up @@ -37,10 +37,10 @@
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
buildConfiguration = "Debug">
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
<TestableReference
skipped = "NO">
Expand All @@ -62,16 +62,19 @@
ReferencedContainer = "container:Rebel.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = ""
selectedLauncherIdentifier = "Xcode.IDEFoundation.Launcher.PosixSpawn"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
buildConfiguration = "Debug"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugXPCServices = "NO"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<MacroExpansion>
<BuildableReference
Expand All @@ -86,10 +89,10 @@
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Profile"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
buildConfiguration = "Profile"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
Expand Down
2 changes: 1 addition & 1 deletion Rebel/RBLHTMLView.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Copyright (c) 2013 GitHub. All rights reserved.
//

#import <WebKit/WebKit.h>
@import WebKit;

// A view for displaying HTML-styled text.
@interface RBLHTMLView : WebView
Expand Down
6 changes: 6 additions & 0 deletions Rebel/RBLHTMLView.m
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@

#import "RBLHTMLView.h"

// These protocols are informal on 10.10, but required on 10.11. 😞
#ifdef MAC_OS_X_VERSION_10_11
@interface RBLHTMLView () <WebPolicyDelegate, WebUIDelegate>
@end
#endif

@implementation RBLHTMLView

#pragma mark Lifecycle
Expand Down
2 changes: 1 addition & 1 deletion Rebel/RBLSlidingContainerView.m
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ - (void)setContentView:(NSView *)contentView direction:(RBLSlidingContainerViewS
[self addConstraints:self.verticalContainerConstraints];
[self addConstraints:self.horizontalContainerConstraints];

self.animations = nil;
self.animations = @{};

if (completionBlock != nil) completionBlock();
};
Expand Down
2 changes: 1 addition & 1 deletion Rebel/Rebel-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<key>CFBundleIconFile</key>
<string></string>
<key>CFBundleIdentifier</key>
<string>com.github.${PRODUCT_NAME:rfc1034identifier}</string>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
Expand Down
2 changes: 1 addition & 1 deletion RebelTests/RebelTests-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIdentifier</key>
<string>com.github.${PRODUCT_NAME:rfc1034identifier}</string>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
Expand Down

0 comments on commit 4da137a

Please sign in to comment.