Skip to content
This repository has been archived by the owner on Sep 12, 2024. It is now read-only.

Adds a shared scheme for Carthage compatibility #3

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Carthage/Build
.DS_Store
*.xcuserdatad
2 changes: 1 addition & 1 deletion Resources/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.iccir.XUIKit</string>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
Expand Down
2 changes: 2 additions & 0 deletions Source/XUIBezierPathAdditions.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#import <Cocoa/Cocoa.h>

#import <XUIKit/XUITypes.h>


Expand Down
1 change: 1 addition & 0 deletions Source/XUIColorAdditions.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#import <Cocoa/Cocoa.h>

@interface NSColor (XUIKitAdditions)

Expand Down
2 changes: 2 additions & 0 deletions Source/XUIFontAdditions.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#import <Cocoa/Cocoa.h>

@interface NSFont (XUIKitAdditions)

+ (NSArray *) familyNames;
Expand Down
2 changes: 1 addition & 1 deletion Source/XUIFontAdditions.m
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ - (CGFloat) xui_lineHeight
int unitsPerEm = CTFontGetUnitsPerEm(ctFont);

long ascent = lroundf( ( CTFontGetAscent( ctFont) / unitsPerEm) * pointSize);
long descent = lroundf(-(-abs(CTFontGetDescent(ctFont)) / unitsPerEm) * pointSize);
long descent = lroundf(-(-fabs(CTFontGetDescent(ctFont)) / unitsPerEm) * pointSize);
long lineGap = lroundf( ( CTFontGetLeading(ctFont) / unitsPerEm) * pointSize);

return ascent + descent + lineGap;
Expand Down
2 changes: 1 addition & 1 deletion Source/XUIGeometry.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#import <Foundation/Foundation.h>
#import <Cocoa/Cocoa.h>
#import <ApplicationServices/ApplicationServices.h>


Expand Down
1 change: 1 addition & 0 deletions Source/XUIGraphics.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#import <Cocoa/Cocoa.h>
#import <XUIKit/XUIBase.h>

@class NSImage;
Expand Down
3 changes: 1 addition & 2 deletions Source/XUIImageAdditions.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@
*/

#import <XUIKit/XUITypes.h>
#import <Foundation/Foundation.h>

#import <Cocoa/Cocoa.h>

@class CIImage;

Expand Down
4 changes: 3 additions & 1 deletion Source/XUIIndexPathAdditions.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#import <XUIKit/XUITypes.h>

#import <Cocoa/Cocoa.h>

#import <XUIKit/XUITypes.h>

@interface NSIndexPath (XUIKitAdditions)

Expand Down
1 change: 1 addition & 0 deletions Source/XUIValueAdditions.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#import <Cocoa/Cocoa.h>
#import <XUIKit/XUITypes.h>
#import <XUIKit/XUIGeometry.h>

Expand Down
1 change: 1 addition & 0 deletions Source/XUIView.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#import <Cocoa/Cocoa.h>
#import <XUIKit/XUITypes.h>
#import <XUIKit/XUIGeometry.h>
#import <AppKit/NSView.h>
Expand Down
1 change: 1 addition & 0 deletions Source/XUIViewAdditions.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#import <Cocoa/Cocoa.h>
#import <XUIKit/XUITypes.h>


Expand Down
15 changes: 14 additions & 1 deletion XUIKit.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@
555459F514EC607B0074B45E /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 0600;
LastUpgradeCheck = 0730;
};
buildConfigurationList = 555459F814EC607B0074B45E /* Build configuration list for PBXProject "XUIKit" */;
compatibilityVersion = "Xcode 3.2";
Expand Down Expand Up @@ -332,6 +332,9 @@
DYLIB_CURRENT_VERSION = 1;
GCC_PREFIX_HEADER = Source/XUIKitPrefix.pch;
MACH_O_TYPE = mh_dylib;
MACOSX_DEPLOYMENT_TARGET = 10.10;
PRODUCT_BUNDLE_IDENTIFIER = com.iccir.XUIKit;
VALID_ARCHS = x86_64;
};
name = Debug;
};
Expand All @@ -345,6 +348,9 @@
DYLIB_CURRENT_VERSION = 1;
GCC_PREFIX_HEADER = Source/XUIKitPrefix.pch;
MACH_O_TYPE = mh_dylib;
MACOSX_DEPLOYMENT_TARGET = 10.10;
PRODUCT_BUNDLE_IDENTIFIER = com.iccir.XUIKit;
VALID_ARCHS = x86_64;
};
name = Profile;
};
Expand All @@ -358,12 +364,17 @@
DYLIB_CURRENT_VERSION = 1;
GCC_PREFIX_HEADER = Source/XUIKitPrefix.pch;
MACH_O_TYPE = mh_dylib;
MACOSX_DEPLOYMENT_TARGET = 10.10;
PRODUCT_BUNDLE_IDENTIFIER = com.iccir.XUIKit;
VALID_ARCHS = x86_64;
};
name = Release;
};
55545A1214EC607B0074B45E /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
DEFINES_MODULE = YES;
ENABLE_TESTABILITY = YES;
MACOSX_DEPLOYMENT_TARGET = 10.7;
ONLY_ACTIVE_ARCH = YES;
};
Expand All @@ -372,13 +383,15 @@
55545A1314EC607B0074B45E /* Profile */ = {
isa = XCBuildConfiguration;
buildSettings = {
DEFINES_MODULE = YES;
MACOSX_DEPLOYMENT_TARGET = 10.7;
};
name = Profile;
};
5579298314FEE20900FCDE7C /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
DEFINES_MODULE = YES;
MACOSX_DEPLOYMENT_TARGET = 10.7;
};
name = Release;
Expand Down
7 changes: 7 additions & 0 deletions XUIKit.xcodeproj/project.xcworkspace/contents.xcworkspacedata

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

80 changes: 80 additions & 0 deletions XUIKit.xcodeproj/xcshareddata/xcschemes/XUIKit.xcscheme
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0730"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "551008D2159BEE4000C86022"
BuildableName = "XUIKit.framework"
BlueprintName = "XUIKit"
ReferencedContainer = "container:XUIKit.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
</Testables>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "551008D2159BEE4000C86022"
BuildableName = "XUIKit.framework"
BlueprintName = "XUIKit"
ReferencedContainer = "container:XUIKit.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "551008D2159BEE4000C86022"
BuildableName = "XUIKit.framework"
BlueprintName = "XUIKit"
ReferencedContainer = "container:XUIKit.xcodeproj">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>