Skip to content

Commit 6ddcf7e

Browse files
AN Zhigangkostub
AN Zhigang
authored andcommitted
Add macOS travis build. (#32)
* Add macOS travis build. * Edit Mac project scheme. * Downgrade xib file version to satisfy travis.
1 parent eff878b commit 6ddcf7e

File tree

3 files changed

+106
-8
lines changed

3 files changed

+106
-8
lines changed

.travis.yml

+12-2
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,15 @@ osx_image: xcode7.3
33
before_install:
44
- gem install cocoapods # Since Travis is not always on latest version
55
xcode_workspace: iosMath.xcworkspace # path to your xcodeproj folder
6-
xcode_scheme: iosMath
7-
xcode_sdk: iphonesimulator9.3
6+
xcode_scheme:
7+
- iosMath
8+
- MacOSMath
9+
xcode_sdk:
10+
- iphonesimulator9.3
11+
- macosx10.11
12+
matrix:
13+
exclude:
14+
- xcode_scheme: iosMath
15+
xcode_sdk: macosx10.11
16+
- xcode_scheme: MacOSMath
17+
xcode_sdk: iphonesimulator9.3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "0810"
4+
version = "1.3">
5+
<BuildAction
6+
parallelizeBuildables = "YES"
7+
buildImplicitDependencies = "YES">
8+
<BuildActionEntries>
9+
<BuildActionEntry
10+
buildForTesting = "YES"
11+
buildForRunning = "YES"
12+
buildForProfiling = "YES"
13+
buildForArchiving = "YES"
14+
buildForAnalyzing = "YES">
15+
<BuildableReference
16+
BuildableIdentifier = "primary"
17+
BlueprintIdentifier = "26123D4A1E230D80007A742A"
18+
BuildableName = "MacOSMath.app"
19+
BlueprintName = "MacOSMath"
20+
ReferencedContainer = "container:MacOSMath.xcodeproj">
21+
</BuildableReference>
22+
</BuildActionEntry>
23+
</BuildActionEntries>
24+
</BuildAction>
25+
<TestAction
26+
buildConfiguration = "Debug"
27+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
28+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29+
shouldUseLaunchSchemeArgsEnv = "YES">
30+
<Testables>
31+
</Testables>
32+
<MacroExpansion>
33+
<BuildableReference
34+
BuildableIdentifier = "primary"
35+
BlueprintIdentifier = "26123D4A1E230D80007A742A"
36+
BuildableName = "MacOSMath.app"
37+
BlueprintName = "MacOSMath"
38+
ReferencedContainer = "container:MacOSMath.xcodeproj">
39+
</BuildableReference>
40+
</MacroExpansion>
41+
<AdditionalOptions>
42+
</AdditionalOptions>
43+
</TestAction>
44+
<LaunchAction
45+
buildConfiguration = "Debug"
46+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
47+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
48+
launchStyle = "0"
49+
useCustomWorkingDirectory = "NO"
50+
ignoresPersistentStateOnLaunch = "NO"
51+
debugDocumentVersioning = "YES"
52+
debugServiceExtension = "internal"
53+
allowLocationSimulation = "YES">
54+
<BuildableProductRunnable
55+
runnableDebuggingMode = "0">
56+
<BuildableReference
57+
BuildableIdentifier = "primary"
58+
BlueprintIdentifier = "26123D4A1E230D80007A742A"
59+
BuildableName = "MacOSMath.app"
60+
BlueprintName = "MacOSMath"
61+
ReferencedContainer = "container:MacOSMath.xcodeproj">
62+
</BuildableReference>
63+
</BuildableProductRunnable>
64+
<AdditionalOptions>
65+
</AdditionalOptions>
66+
</LaunchAction>
67+
<ProfileAction
68+
buildConfiguration = "Release"
69+
shouldUseLaunchSchemeArgsEnv = "YES"
70+
savedToolIdentifier = ""
71+
useCustomWorkingDirectory = "NO"
72+
debugDocumentVersioning = "YES">
73+
<BuildableProductRunnable
74+
runnableDebuggingMode = "0">
75+
<BuildableReference
76+
BuildableIdentifier = "primary"
77+
BlueprintIdentifier = "26123D4A1E230D80007A742A"
78+
BuildableName = "MacOSMath.app"
79+
BlueprintName = "MacOSMath"
80+
ReferencedContainer = "container:MacOSMath.xcodeproj">
81+
</BuildableReference>
82+
</BuildableProductRunnable>
83+
</ProfileAction>
84+
<AnalyzeAction
85+
buildConfiguration = "Debug">
86+
</AnalyzeAction>
87+
<ArchiveAction
88+
buildConfiguration = "Release"
89+
revealArchiveInOrganizer = "YES">
90+
</ArchiveAction>
91+
</Scheme>

MacOSMathExample/Base.lproj/MainMenu.xib

+3-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="11542" systemVersion="16B2657" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
2+
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="10116" systemVersion="16B2657" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
33
<dependencies>
44
<deployment identifier="macosx"/>
5-
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="11542"/>
6-
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
5+
<development version="7000" identifier="xcode"/>
6+
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="10116"/>
77
</dependencies>
88
<objects>
99
<customObject id="-2" userLabel="File's Owner" customClass="NSApplication">
@@ -693,7 +693,6 @@
693693
<subviews>
694694
<button verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="rQu-NO-fcw">
695695
<rect key="frame" x="200" y="13" width="81" height="32"/>
696-
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
697696
<buttonCell key="cell" type="push" title="Update!" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="q3o-Jo-ri0">
698697
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
699698
<font key="font" metaFont="system"/>
@@ -704,7 +703,6 @@
704703
</button>
705704
<textField verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="3eF-aq-wq7">
706705
<rect key="frame" x="20" y="49" width="440" height="22"/>
707-
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
708706
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" state="on" borderStyle="bezel" placeholderString="Enter LaTeX here..." drawsBackground="YES" id="w3t-RT-Vy0">
709707
<font key="font" metaFont="system"/>
710708
<color key="textColor" name="textColor" catalog="System" colorSpace="catalog"/>
@@ -713,7 +711,6 @@
713711
</textField>
714712
<customView fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="JGc-8F-Tcp" customClass="MTMathUILabel">
715713
<rect key="frame" x="20" y="79" width="440" height="261"/>
716-
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
717714
</customView>
718715
</subviews>
719716
</view>

0 commit comments

Comments
 (0)