Skip to content

Commit 5093dc9

Browse files
committed
Added a podspec for iosMath.
Make the iosMathExample and tests depend on the pod.
1 parent f57b01c commit 5093dc9

File tree

6 files changed

+181
-18
lines changed

6 files changed

+181
-18
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ xcuserdata
3434
# you should judge for yourself, the pros and cons are mentioned at:
3535
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
3636
#
37-
# Pods/
37+
Pods/
3838

3939
# Carthage
4040
#

Podfile

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
target 'iosMathExample' do
2+
pod 'iosMath', :path => './'
3+
end
4+
5+
target 'iosMathTests' do
6+
pod 'iosMath', :path => './'
7+
end

Podfile.lock

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
PODS:
2+
- iosMath (0.6.0)
3+
4+
DEPENDENCIES:
5+
- iosMath (from `./`)
6+
7+
EXTERNAL SOURCES:
8+
iosMath:
9+
:path: ./
10+
11+
SPEC CHECKSUMS:
12+
iosMath: b0641b8fd576bcec39aa928699ca3d606051c401
13+
14+
PODFILE CHECKSUM: e73bbdf6db9c819e34cb928888aa8f6ddfa45451
15+
16+
COCOAPODS: 1.0.0

iosMath.podspec

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Be sure to run `pod spec lint iosMath.podspec' to ensure this is a
2+
Pod::Spec.new do |s|
3+
s.name = "iosMath"
4+
s.version = "0.6.0"
5+
s.summary = "Math typesetting for iOS."
6+
# * Think: What does it do? Why did you write it? What is the focus?
7+
# * Try to keep it short, snappy and to the point.
8+
# * Write the description between the DESC delimiters below.
9+
# * Finally, don't worry about the indent, CocoaPods strips it!
10+
s.description = <<-DESC
11+
iosMath is a library for typesetting math formulas in iOS.
12+
DESC
13+
14+
s.homepage = "https://github.com/kostub/iosMath"
15+
s.license = { :type => "MIT", :file => "LICENSE" }
16+
s.author = { "Kostub Deshmukh" => "[email protected]" }
17+
s.platform = :ios, "6.0"
18+
s.source = { :git => "https://github.com/kostub/iosMath.git", :tag => s.version.to_s }
19+
s.source_files = 'iosMath/**/*'
20+
s.resources = "MathFontBundle/*.otf"
21+
s.frameworks = "CoreGraphics", "QuartzCore", "CoreText", "UIKit"
22+
s.requires_arc = true
23+
end

iosMath.xcodeproj/project.pbxproj

+124-17
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,8 @@
1414
492EED0C17DAEDDD00939107 /* MTMathListBuilder.m in Sources */ = {isa = PBXBuildFile; fileRef = 492EECFF17DAEDB500939107 /* MTMathListBuilder.m */; };
1515
492EED0D17DAEDDD00939107 /* MTMathAtomFactory.m in Sources */ = {isa = PBXBuildFile; fileRef = 492EED0117DAEDB500939107 /* MTMathAtomFactory.m */; };
1616
492EED0E17DAEDDD00939107 /* MTMathList.m in Sources */ = {isa = PBXBuildFile; fileRef = 492EED0317DAEDB500939107 /* MTMathList.m */; };
17-
492EED1817DAF74300939107 /* libIosMath.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 4987307517D546800041B02B /* libIosMath.a */; };
1817
4987307617D546800041B02B /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 49965F0117CBBA2700A555C5 /* Foundation.framework */; };
1918
498730A417D547450041B02B /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 49965F2617CBBA2700A555C5 /* InfoPlist.strings */; };
20-
498730A517D5475E0041B02B /* libIosMath.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 4987307517D546800041B02B /* libIosMath.a */; };
2119
498730A617D548190041B02B /* iosMathTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 49965F2A17CBBA2700A555C5 /* iosMathTests.m */; };
2220
498730A717D548190041B02B /* MTMathListBuilderTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 49B83EEF17CE71AC0014B739 /* MTMathListBuilderTest.m */; };
2321
498730A817D548190041B02B /* MTMathListTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 49B83EF517CF046A0014B739 /* MTMathListTest.m */; };
@@ -43,20 +41,15 @@
4341
49B83F0817CF2B420014B739 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 49B83F0717CF2B420014B739 /* ViewController.m */; };
4442
49B83F0E17CF30740014B739 /* latinmodern-math.otf in Resources */ = {isa = PBXBuildFile; fileRef = 49B83F0D17CF30740014B739 /* latinmodern-math.otf */; };
4543
49DA6BC719A062A30086B19F /* MTUnicode.m in Sources */ = {isa = PBXBuildFile; fileRef = 49DA6BC619A062A30086B19F /* MTUnicode.m */; };
44+
66B91F54A155071228C33E27 /* libPods-iosMathExample.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B7305B3D5272E07D296E1146 /* libPods-iosMathExample.a */; };
45+
A4AF82224BB9060CC51567E8 /* libPods-iosMathTests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 847963E8DF103FF2BAABFCD8 /* libPods-iosMathTests.a */; };
4646
D94FE3531B90DD29002D11E2 /* MTMathUILabel.h in Headers */ = {isa = PBXBuildFile; fileRef = 492EECF417DAED9000939107 /* MTMathUILabel.h */; settings = {ATTRIBUTES = (Public, ); }; };
4747
D94FE3541B90DE46002D11E2 /* MTMathListDisplay.h in Headers */ = {isa = PBXBuildFile; fileRef = 492EECF317DAED9000939107 /* MTMathListDisplay.h */; settings = {ATTRIBUTES = (Public, ); }; };
4848
D94FE3551B90DE5B002D11E2 /* MTMathList.h in Headers */ = {isa = PBXBuildFile; fileRef = 492EED0217DAEDB500939107 /* MTMathList.h */; settings = {ATTRIBUTES = (Public, ); }; };
4949
D94FE3591B90DE91002D11E2 /* MTMathListBuilder.h in Headers */ = {isa = PBXBuildFile; fileRef = 492EED0417DAEDB500939107 /* MTMathListBuilder.h */; settings = {ATTRIBUTES = (Public, ); }; };
5050
/* End PBXBuildFile section */
5151

5252
/* Begin PBXContainerItemProxy section */
53-
492EED1417DAF1E200939107 /* PBXContainerItemProxy */ = {
54-
isa = PBXContainerItemProxy;
55-
containerPortal = 49965EF417CBBA2700A555C5 /* Project object */;
56-
proxyType = 1;
57-
remoteGlobalIDString = 4987307417D546800041B02B;
58-
remoteInfo = iosMath;
59-
};
6053
493202AE1B4D2A7C00712B40 /* PBXContainerItemProxy */ = {
6154
isa = PBXContainerItemProxy;
6255
containerPortal = 49965EF417CBBA2700A555C5 /* Project object */;
@@ -130,6 +123,12 @@
130123
49B83F0D17CF30740014B739 /* latinmodern-math.otf */ = {isa = PBXFileReference; lastKnownFileType = file; name = "latinmodern-math.otf"; path = "Resources/latinmodern-math.otf"; sourceTree = "<group>"; };
131124
49DA6BC319A05F850086B19F /* MTUnicode.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = MTUnicode.h; path = ../../../iosMath/iosMath/lib/MTUnicode.h; sourceTree = "<group>"; };
132125
49DA6BC619A062A30086B19F /* MTUnicode.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = MTUnicode.m; path = ../../../iosMath/iosMath/lib/MTUnicode.m; sourceTree = "<group>"; };
126+
847963E8DF103FF2BAABFCD8 /* libPods-iosMathTests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-iosMathTests.a"; sourceTree = BUILT_PRODUCTS_DIR; };
127+
964660A84E6FEDD150C994C8 /* Pods-iosMathTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-iosMathTests.release.xcconfig"; path = "Pods/Target Support Files/Pods-iosMathTests/Pods-iosMathTests.release.xcconfig"; sourceTree = "<group>"; };
128+
B16B9A63054AE3FFB5C36F6B /* Pods-iosMathExample.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-iosMathExample.release.xcconfig"; path = "Pods/Target Support Files/Pods-iosMathExample/Pods-iosMathExample.release.xcconfig"; sourceTree = "<group>"; };
129+
B7305B3D5272E07D296E1146 /* libPods-iosMathExample.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-iosMathExample.a"; sourceTree = BUILT_PRODUCTS_DIR; };
130+
BB4250423755E0D3CD2BA614 /* Pods-iosMathTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-iosMathTests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-iosMathTests/Pods-iosMathTests.debug.xcconfig"; sourceTree = "<group>"; };
131+
D93290960585498BBAEE4535 /* Pods-iosMathExample.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-iosMathExample.debug.xcconfig"; path = "Pods/Target Support Files/Pods-iosMathExample/Pods-iosMathExample.debug.xcconfig"; sourceTree = "<group>"; };
133132
D94FE3501B90DCA5002D11E2 /* IosMath.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = IosMath.h; sourceTree = "<group>"; };
134133
/* End PBXFileReference section */
135134

@@ -154,17 +153,17 @@
154153
49965F0017CBBA2700A555C5 /* UIKit.framework in Frameworks */,
155154
49965F0217CBBA2700A555C5 /* Foundation.framework in Frameworks */,
156155
49965F0417CBBA2700A555C5 /* CoreGraphics.framework in Frameworks */,
157-
498730A517D5475E0041B02B /* libIosMath.a in Frameworks */,
156+
66B91F54A155071228C33E27 /* libPods-iosMathExample.a in Frameworks */,
158157
);
159158
runOnlyForDeploymentPostprocessing = 0;
160159
};
161160
49965F1817CBBA2700A555C5 /* Frameworks */ = {
162161
isa = PBXFrameworksBuildPhase;
163162
buildActionMask = 2147483647;
164163
files = (
165-
492EED1817DAF74300939107 /* libIosMath.a in Frameworks */,
166164
49965F1F17CBBA2700A555C5 /* UIKit.framework in Frameworks */,
167165
49965F2017CBBA2700A555C5 /* Foundation.framework in Frameworks */,
166+
A4AF82224BB9060CC51567E8 /* libPods-iosMathTests.a in Frameworks */,
168167
);
169168
runOnlyForDeploymentPostprocessing = 0;
170169
};
@@ -208,6 +207,7 @@
208207
49A27B0418EBF5B30030B7EF /* MathFontBundle */,
209208
49965EFE17CBBA2700A555C5 /* Frameworks */,
210209
49965EFD17CBBA2700A555C5 /* Products */,
210+
673C67F49848EC78C5FD29E0 /* Pods */,
211211
);
212212
sourceTree = "<group>";
213213
};
@@ -229,6 +229,8 @@
229229
49965F0117CBBA2700A555C5 /* Foundation.framework */,
230230
49965F0317CBBA2700A555C5 /* CoreGraphics.framework */,
231231
49A27B0218EBF5B30030B7EF /* CoreFoundation.framework */,
232+
B7305B3D5272E07D296E1146 /* libPods-iosMathExample.a */,
233+
847963E8DF103FF2BAABFCD8 /* libPods-iosMathTests.a */,
232234
);
233235
name = Frameworks;
234236
sourceTree = "<group>";
@@ -348,6 +350,17 @@
348350
name = Resources;
349351
sourceTree = "<group>";
350352
};
353+
673C67F49848EC78C5FD29E0 /* Pods */ = {
354+
isa = PBXGroup;
355+
children = (
356+
D93290960585498BBAEE4535 /* Pods-iosMathExample.debug.xcconfig */,
357+
B16B9A63054AE3FFB5C36F6B /* Pods-iosMathExample.release.xcconfig */,
358+
BB4250423755E0D3CD2BA614 /* Pods-iosMathTests.debug.xcconfig */,
359+
964660A84E6FEDD150C994C8 /* Pods-iosMathTests.release.xcconfig */,
360+
);
361+
name = Pods;
362+
sourceTree = "<group>";
363+
};
351364
/* End PBXGroup section */
352365

353366
/* Begin PBXHeadersBuildPhase section */
@@ -388,9 +401,12 @@
388401
isa = PBXNativeTarget;
389402
buildConfigurationList = 49965F2E17CBBA2700A555C5 /* Build configuration list for PBXNativeTarget "iosMathExample" */;
390403
buildPhases = (
404+
E29EDA86FBD87D988339E97B /* 📦 Check Pods Manifest.lock */,
391405
49965EF817CBBA2700A555C5 /* Sources */,
392406
49965EF917CBBA2700A555C5 /* Frameworks */,
393407
49965EFA17CBBA2700A555C5 /* Resources */,
408+
3442884B289896C8F015C1E5 /* 📦 Embed Pods Frameworks */,
409+
C897D2526C33F372299D91F4 /* 📦 Copy Pods Resources */,
394410
);
395411
buildRules = (
396412
);
@@ -406,15 +422,17 @@
406422
isa = PBXNativeTarget;
407423
buildConfigurationList = 49965F3117CBBA2700A555C5 /* Build configuration list for PBXNativeTarget "iosMathTests" */;
408424
buildPhases = (
425+
2A6BF4D73475A64FE2BB8DAD /* 📦 Check Pods Manifest.lock */,
409426
49965F1717CBBA2700A555C5 /* Sources */,
410427
49965F1817CBBA2700A555C5 /* Frameworks */,
411428
49965F1917CBBA2700A555C5 /* Resources */,
412429
49965F1A17CBBA2700A555C5 /* ShellScript */,
430+
89BE4A420E67730DC572540C /* 📦 Embed Pods Frameworks */,
431+
C6253ABF539A9D25D25B1108 /* 📦 Copy Pods Resources */,
413432
);
414433
buildRules = (
415434
);
416435
dependencies = (
417-
492EED1517DAF1E200939107 /* PBXTargetDependency */,
418436
);
419437
name = iosMathTests;
420438
productName = iosMathTests;
@@ -502,6 +520,36 @@
502520
/* End PBXResourcesBuildPhase section */
503521

504522
/* Begin PBXShellScriptBuildPhase section */
523+
2A6BF4D73475A64FE2BB8DAD /* 📦 Check Pods Manifest.lock */ = {
524+
isa = PBXShellScriptBuildPhase;
525+
buildActionMask = 2147483647;
526+
files = (
527+
);
528+
inputPaths = (
529+
);
530+
name = "📦 Check Pods Manifest.lock";
531+
outputPaths = (
532+
);
533+
runOnlyForDeploymentPostprocessing = 0;
534+
shellPath = /bin/sh;
535+
shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [[ $? != 0 ]] ; then\n cat << EOM\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\nEOM\n exit 1\nfi\n";
536+
showEnvVarsInLog = 0;
537+
};
538+
3442884B289896C8F015C1E5 /* 📦 Embed Pods Frameworks */ = {
539+
isa = PBXShellScriptBuildPhase;
540+
buildActionMask = 2147483647;
541+
files = (
542+
);
543+
inputPaths = (
544+
);
545+
name = "📦 Embed Pods Frameworks";
546+
outputPaths = (
547+
);
548+
runOnlyForDeploymentPostprocessing = 0;
549+
shellPath = /bin/sh;
550+
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-iosMathExample/Pods-iosMathExample-frameworks.sh\"\n";
551+
showEnvVarsInLog = 0;
552+
};
505553
49965F1A17CBBA2700A555C5 /* ShellScript */ = {
506554
isa = PBXShellScriptBuildPhase;
507555
buildActionMask = 2147483647;
@@ -515,6 +563,51 @@
515563
shellPath = /bin/sh;
516564
shellScript = "# Run the unit tests in this test bundle.\n\"${SYSTEM_DEVELOPER_DIR}/Tools/RunUnitTests\"\n";
517565
};
566+
89BE4A420E67730DC572540C /* 📦 Embed Pods Frameworks */ = {
567+
isa = PBXShellScriptBuildPhase;
568+
buildActionMask = 2147483647;
569+
files = (
570+
);
571+
inputPaths = (
572+
);
573+
name = "📦 Embed Pods Frameworks";
574+
outputPaths = (
575+
);
576+
runOnlyForDeploymentPostprocessing = 0;
577+
shellPath = /bin/sh;
578+
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-iosMathTests/Pods-iosMathTests-frameworks.sh\"\n";
579+
showEnvVarsInLog = 0;
580+
};
581+
C6253ABF539A9D25D25B1108 /* 📦 Copy Pods Resources */ = {
582+
isa = PBXShellScriptBuildPhase;
583+
buildActionMask = 2147483647;
584+
files = (
585+
);
586+
inputPaths = (
587+
);
588+
name = "📦 Copy Pods Resources";
589+
outputPaths = (
590+
);
591+
runOnlyForDeploymentPostprocessing = 0;
592+
shellPath = /bin/sh;
593+
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-iosMathTests/Pods-iosMathTests-resources.sh\"\n";
594+
showEnvVarsInLog = 0;
595+
};
596+
C897D2526C33F372299D91F4 /* 📦 Copy Pods Resources */ = {
597+
isa = PBXShellScriptBuildPhase;
598+
buildActionMask = 2147483647;
599+
files = (
600+
);
601+
inputPaths = (
602+
);
603+
name = "📦 Copy Pods Resources";
604+
outputPaths = (
605+
);
606+
runOnlyForDeploymentPostprocessing = 0;
607+
shellPath = /bin/sh;
608+
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-iosMathExample/Pods-iosMathExample-resources.sh\"\n";
609+
showEnvVarsInLog = 0;
610+
};
518611
D94FE35A1B90E141002D11E2 /* ShellScript */ = {
519612
isa = PBXShellScriptBuildPhase;
520613
buildActionMask = 2147483647;
@@ -528,6 +621,21 @@
528621
shellPath = /bin/sh;
529622
shellScript = "\"${SRCROOT}/build_multiplatform.sh\"";
530623
};
624+
E29EDA86FBD87D988339E97B /* 📦 Check Pods Manifest.lock */ = {
625+
isa = PBXShellScriptBuildPhase;
626+
buildActionMask = 2147483647;
627+
files = (
628+
);
629+
inputPaths = (
630+
);
631+
name = "📦 Check Pods Manifest.lock";
632+
outputPaths = (
633+
);
634+
runOnlyForDeploymentPostprocessing = 0;
635+
shellPath = /bin/sh;
636+
shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [[ $? != 0 ]] ; then\n cat << EOM\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\nEOM\n exit 1\nfi\n";
637+
showEnvVarsInLog = 0;
638+
};
531639
/* End PBXShellScriptBuildPhase section */
532640

533641
/* Begin PBXSourcesBuildPhase section */
@@ -576,11 +684,6 @@
576684
/* End PBXSourcesBuildPhase section */
577685

578686
/* Begin PBXTargetDependency section */
579-
492EED1517DAF1E200939107 /* PBXTargetDependency */ = {
580-
isa = PBXTargetDependency;
581-
target = 4987307417D546800041B02B /* IosMath */;
582-
targetProxy = 492EED1417DAF1E200939107 /* PBXContainerItemProxy */;
583-
};
584687
493202AF1B4D2A7C00712B40 /* PBXTargetDependency */ = {
585688
isa = PBXTargetDependency;
586689
target = 49A27B0018EBF5B30030B7EF /* MathFontBundle */;
@@ -706,6 +809,7 @@
706809
};
707810
49965F2F17CBBA2700A555C5 /* Debug */ = {
708811
isa = XCBuildConfiguration;
812+
baseConfigurationReference = D93290960585498BBAEE4535 /* Pods-iosMathExample.debug.xcconfig */;
709813
buildSettings = {
710814
CODE_SIGN_IDENTITY = "iPhone Developer";
711815
GCC_PRECOMPILE_PREFIX_HEADER = YES;
@@ -720,6 +824,7 @@
720824
};
721825
49965F3017CBBA2700A555C5 /* Release */ = {
722826
isa = XCBuildConfiguration;
827+
baseConfigurationReference = B16B9A63054AE3FFB5C36F6B /* Pods-iosMathExample.release.xcconfig */;
723828
buildSettings = {
724829
GCC_PRECOMPILE_PREFIX_HEADER = YES;
725830
GCC_PREFIX_HEADER = "iosMathExample/iosMath-Prefix.pch";
@@ -733,6 +838,7 @@
733838
};
734839
49965F3217CBBA2700A555C5 /* Debug */ = {
735840
isa = XCBuildConfiguration;
841+
baseConfigurationReference = BB4250423755E0D3CD2BA614 /* Pods-iosMathTests.debug.xcconfig */;
736842
buildSettings = {
737843
FRAMEWORK_SEARCH_PATHS = (
738844
"\"$(SDKROOT)/Developer/Library/Frameworks\"",
@@ -749,6 +855,7 @@
749855
};
750856
49965F3317CBBA2700A555C5 /* Release */ = {
751857
isa = XCBuildConfiguration;
858+
baseConfigurationReference = 964660A84E6FEDD150C994C8 /* Pods-iosMathTests.release.xcconfig */;
752859
buildSettings = {
753860
FRAMEWORK_SEARCH_PATHS = (
754861
"\"$(SDKROOT)/Developer/Library/Frameworks\"",

iosMath.xcworkspace/contents.xcworkspacedata

+10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)