Skip to content

Commit a7286bc

Browse files
committed
Include iOS target.
1 parent 4df321e commit a7286bc

File tree

6 files changed

+225
-5
lines changed

6 files changed

+225
-5
lines changed

NumberKit.xcodeproj/project.pbxproj

Lines changed: 165 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@
2020
CCA2651723EF73B700483329 /* CodableTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = CCA2651623EF73B700483329 /* CodableTests.swift */; };
2121
CCA8E8111F7780C800927A41 /* FloatingPointNumber.swift in Sources */ = {isa = PBXBuildFile; fileRef = CCA8E8101F7780C800927A41 /* FloatingPointNumber.swift */; };
2222
CCA8E8131F77814F00927A41 /* IntegerNumber.swift in Sources */ = {isa = PBXBuildFile; fileRef = CCA8E8121F77814F00927A41 /* IntegerNumber.swift */; };
23+
CCD2603D23F20F7200DFE5A4 /* NumberKit_iOS.h in Headers */ = {isa = PBXBuildFile; fileRef = CCD2603B23F20F7200DFE5A4 /* NumberKit_iOS.h */; settings = {ATTRIBUTES = (Public, ); }; };
24+
CCD2604123F2119900DFE5A4 /* NumberUtil.swift in Sources */ = {isa = PBXBuildFile; fileRef = CC99F56D1B7AAAA300355E1E /* NumberUtil.swift */; };
25+
CCD2604223F2119C00DFE5A4 /* IntegerNumber.swift in Sources */ = {isa = PBXBuildFile; fileRef = CCA8E8121F77814F00927A41 /* IntegerNumber.swift */; };
26+
CCD2604323F2119F00DFE5A4 /* FloatingPointNumber.swift in Sources */ = {isa = PBXBuildFile; fileRef = CCA8E8101F7780C800927A41 /* FloatingPointNumber.swift */; };
27+
CCD2604423F211A200DFE5A4 /* BigInt.swift in Sources */ = {isa = PBXBuildFile; fileRef = CC99F56B1B7AA81500355E1E /* BigInt.swift */; };
28+
CCD2604523F211A500DFE5A4 /* Rational.swift in Sources */ = {isa = PBXBuildFile; fileRef = CC0741561B81269200406A43 /* Rational.swift */; };
29+
CCD2604623F211A800DFE5A4 /* Complex.swift in Sources */ = {isa = PBXBuildFile; fileRef = CC0741581B8127B600406A43 /* Complex.swift */; };
2330
/* End PBXBuildFile section */
2431

2532
/* Begin PBXContainerItemProxy section */
@@ -53,6 +60,9 @@
5360
CCA8E8101F7780C800927A41 /* FloatingPointNumber.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FloatingPointNumber.swift; sourceTree = "<group>"; };
5461
CCA8E8121F77814F00927A41 /* IntegerNumber.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = IntegerNumber.swift; sourceTree = "<group>"; };
5562
CCB691501EB7710700B32D55 /* Package.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Package.swift; sourceTree = "<group>"; };
63+
CCD2603923F20F7200DFE5A4 /* NumberKit.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = NumberKit.framework; sourceTree = BUILT_PRODUCTS_DIR; };
64+
CCD2603B23F20F7200DFE5A4 /* NumberKit_iOS.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = NumberKit_iOS.h; sourceTree = "<group>"; };
65+
CCD2603C23F20F7200DFE5A4 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
5666
CCE9DD301B8BB4A600340DD1 /* CHANGELOG.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = CHANGELOG.md; sourceTree = "<group>"; };
5767
/* End PBXFileReference section */
5868

@@ -72,6 +82,13 @@
7282
);
7383
runOnlyForDeploymentPostprocessing = 0;
7484
};
85+
CCD2603623F20F7200DFE5A4 /* Frameworks */ = {
86+
isa = PBXFrameworksBuildPhase;
87+
buildActionMask = 2147483647;
88+
files = (
89+
);
90+
runOnlyForDeploymentPostprocessing = 0;
91+
};
7592
/* End PBXFrameworksBuildPhase section */
7693

7794
/* Begin PBXGroup section */
@@ -83,6 +100,7 @@
83100
CC99F5721B7AB66E00355E1E /* LICENSE */,
84101
CCB691501EB7710700B32D55 /* Package.swift */,
85102
CC99F5511B7AA6E200355E1E /* NumberKit */,
103+
CCD2603A23F20F7200DFE5A4 /* NumberKit iOS */,
86104
CC99F55D1B7AA6E200355E1E /* NumberKitTests */,
87105
CC99F5501B7AA6E200355E1E /* Products */,
88106
);
@@ -95,6 +113,7 @@
95113
children = (
96114
CC99F54F1B7AA6E200355E1E /* NumberKit.framework */,
97115
CC99F5591B7AA6E200355E1E /* NumberKitTests.xctest */,
116+
CCD2603923F20F7200DFE5A4 /* NumberKit.framework */,
98117
);
99118
name = Products;
100119
sourceTree = "<group>";
@@ -134,6 +153,16 @@
134153
sourceTree = "<group>";
135154
tabWidth = 2;
136155
};
156+
CCD2603A23F20F7200DFE5A4 /* NumberKit iOS */ = {
157+
isa = PBXGroup;
158+
children = (
159+
CCD2603B23F20F7200DFE5A4 /* NumberKit_iOS.h */,
160+
CCD2603C23F20F7200DFE5A4 /* Info.plist */,
161+
);
162+
name = "NumberKit iOS";
163+
path = "Sources/NumberKit iOS";
164+
sourceTree = "<group>";
165+
};
137166
/* End PBXGroup section */
138167

139168
/* Begin PBXHeadersBuildPhase section */
@@ -145,6 +174,14 @@
145174
);
146175
runOnlyForDeploymentPostprocessing = 0;
147176
};
177+
CCD2603423F20F7200DFE5A4 /* Headers */ = {
178+
isa = PBXHeadersBuildPhase;
179+
buildActionMask = 2147483647;
180+
files = (
181+
CCD2603D23F20F7200DFE5A4 /* NumberKit_iOS.h in Headers */,
182+
);
183+
runOnlyForDeploymentPostprocessing = 0;
184+
};
148185
/* End PBXHeadersBuildPhase section */
149186

150187
/* Begin PBXNativeTarget section */
@@ -184,6 +221,24 @@
184221
productReference = CC99F5591B7AA6E200355E1E /* NumberKitTests.xctest */;
185222
productType = "com.apple.product-type.bundle.unit-test";
186223
};
224+
CCD2603823F20F7200DFE5A4 /* NumberKit iOS */ = {
225+
isa = PBXNativeTarget;
226+
buildConfigurationList = CCD2604023F20F7200DFE5A4 /* Build configuration list for PBXNativeTarget "NumberKit iOS" */;
227+
buildPhases = (
228+
CCD2603523F20F7200DFE5A4 /* Sources */,
229+
CCD2603623F20F7200DFE5A4 /* Frameworks */,
230+
CCD2603423F20F7200DFE5A4 /* Headers */,
231+
CCD2603723F20F7200DFE5A4 /* Resources */,
232+
);
233+
buildRules = (
234+
);
235+
dependencies = (
236+
);
237+
name = "NumberKit iOS";
238+
productName = "NumberKit-iOS";
239+
productReference = CCD2603923F20F7200DFE5A4 /* NumberKit.framework */;
240+
productType = "com.apple.product-type.framework";
241+
};
187242
/* End PBXNativeTarget section */
188243

189244
/* Begin PBXProject section */
@@ -202,6 +257,11 @@
202257
CreatedOnToolsVersion = 7.0;
203258
LastSwiftMigration = 1020;
204259
};
260+
CCD2603823F20F7200DFE5A4 = {
261+
CreatedOnToolsVersion = 11.3.1;
262+
DevelopmentTeam = C72Z63N8M5;
263+
ProvisioningStyle = Automatic;
264+
};
205265
};
206266
};
207267
buildConfigurationList = CC99F5491B7AA6E200355E1E /* Build configuration list for PBXProject "NumberKit" */;
@@ -218,6 +278,7 @@
218278
projectRoot = "";
219279
targets = (
220280
CC99F54E1B7AA6E200355E1E /* NumberKit */,
281+
CCD2603823F20F7200DFE5A4 /* NumberKit iOS */,
221282
CC99F5581B7AA6E200355E1E /* NumberKitTests */,
222283
);
223284
};
@@ -238,6 +299,13 @@
238299
);
239300
runOnlyForDeploymentPostprocessing = 0;
240301
};
302+
CCD2603723F20F7200DFE5A4 /* Resources */ = {
303+
isa = PBXResourcesBuildPhase;
304+
buildActionMask = 2147483647;
305+
files = (
306+
);
307+
runOnlyForDeploymentPostprocessing = 0;
308+
};
241309
/* End PBXResourcesBuildPhase section */
242310

243311
/* Begin PBXSourcesBuildPhase section */
@@ -266,6 +334,19 @@
266334
);
267335
runOnlyForDeploymentPostprocessing = 0;
268336
};
337+
CCD2603523F20F7200DFE5A4 /* Sources */ = {
338+
isa = PBXSourcesBuildPhase;
339+
buildActionMask = 2147483647;
340+
files = (
341+
CCD2604423F211A200DFE5A4 /* BigInt.swift in Sources */,
342+
CCD2604323F2119F00DFE5A4 /* FloatingPointNumber.swift in Sources */,
343+
CCD2604523F211A500DFE5A4 /* Rational.swift in Sources */,
344+
CCD2604123F2119900DFE5A4 /* NumberUtil.swift in Sources */,
345+
CCD2604623F211A800DFE5A4 /* Complex.swift in Sources */,
346+
CCD2604223F2119C00DFE5A4 /* IntegerNumber.swift in Sources */,
347+
);
348+
runOnlyForDeploymentPostprocessing = 0;
349+
};
269350
/* End PBXSourcesBuildPhase section */
270351

271352
/* Begin PBXTargetDependency section */
@@ -324,13 +405,15 @@
324405
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
325406
GCC_WARN_UNUSED_FUNCTION = YES;
326407
GCC_WARN_UNUSED_VARIABLE = YES;
408+
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
327409
MACOSX_DEPLOYMENT_TARGET = 10.12;
328410
MTL_ENABLE_DEBUG_INFO = YES;
329411
ONLY_ACTIVE_ARCH = YES;
330412
SDKROOT = macosx;
331413
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
332414
SWIFT_SWIFT3_OBJC_INFERENCE = Off;
333415
SWIFT_VERSION = 5.0;
416+
TARGETED_DEVICE_FAMILY = "1,2";
334417
VERSIONING_SYSTEM = "apple-generic";
335418
VERSION_INFO_PREFIX = "";
336419
};
@@ -377,12 +460,14 @@
377460
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
378461
GCC_WARN_UNUSED_FUNCTION = YES;
379462
GCC_WARN_UNUSED_VARIABLE = YES;
463+
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
380464
MACOSX_DEPLOYMENT_TARGET = 10.12;
381465
MTL_ENABLE_DEBUG_INFO = NO;
382466
SDKROOT = macosx;
383467
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
384468
SWIFT_SWIFT3_OBJC_INFERENCE = Off;
385469
SWIFT_VERSION = 5.0;
470+
TARGETED_DEVICE_FAMILY = "1,2";
386471
VERSIONING_SYSTEM = "apple-generic";
387472
VERSION_INFO_PREFIX = "";
388473
};
@@ -393,6 +478,7 @@
393478
buildSettings = {
394479
CLANG_ENABLE_MODULES = YES;
395480
COMBINE_HIDPI_IMAGES = YES;
481+
CURRENT_PROJECT_VERSION = 1;
396482
DEFINES_MODULE = YES;
397483
DYLIB_COMPATIBILITY_VERSION = 1;
398484
DYLIB_CURRENT_VERSION = 1;
@@ -401,7 +487,7 @@
401487
INFOPLIST_FILE = "$(SRCROOT)/Sources/NumberKit/Info.plist";
402488
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
403489
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/Frameworks";
404-
MARKETING_VERSION = 2.3.3;
490+
MARKETING_VERSION = 2.3.4;
405491
PRODUCT_BUNDLE_IDENTIFIER = net.objecthub.NumberKit;
406492
PRODUCT_NAME = "$(TARGET_NAME)";
407493
SKIP_INSTALL = YES;
@@ -415,6 +501,7 @@
415501
buildSettings = {
416502
CLANG_ENABLE_MODULES = YES;
417503
COMBINE_HIDPI_IMAGES = YES;
504+
CURRENT_PROJECT_VERSION = 1;
418505
DEFINES_MODULE = YES;
419506
DYLIB_COMPATIBILITY_VERSION = 1;
420507
DYLIB_CURRENT_VERSION = 1;
@@ -423,7 +510,7 @@
423510
INFOPLIST_FILE = "$(SRCROOT)/Sources/NumberKit/Info.plist";
424511
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
425512
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/Frameworks";
426-
MARKETING_VERSION = 2.3.3;
513+
MARKETING_VERSION = 2.3.4;
427514
PRODUCT_BUNDLE_IDENTIFIER = net.objecthub.NumberKit;
428515
PRODUCT_NAME = "$(TARGET_NAME)";
429516
SKIP_INSTALL = YES;
@@ -455,6 +542,73 @@
455542
};
456543
name = Release;
457544
};
545+
CCD2603E23F20F7200DFE5A4 /* Debug */ = {
546+
isa = XCBuildConfiguration;
547+
buildSettings = {
548+
CLANG_ANALYZER_NONNULL = YES;
549+
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
550+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
551+
CLANG_ENABLE_OBJC_WEAK = YES;
552+
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
553+
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
554+
CODE_SIGN_STYLE = Automatic;
555+
CURRENT_PROJECT_VERSION = 1;
556+
DEFINES_MODULE = YES;
557+
DEVELOPMENT_TEAM = C72Z63N8M5;
558+
DYLIB_COMPATIBILITY_VERSION = 1;
559+
DYLIB_CURRENT_VERSION = 1;
560+
DYLIB_INSTALL_NAME_BASE = "@rpath";
561+
GCC_C_LANGUAGE_STANDARD = gnu11;
562+
INFOPLIST_FILE = "$(SRCROOT)/Sources/NumberKit iOS/Info.plist";
563+
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
564+
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
565+
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
566+
MARKETING_VERSION = 2.3.4;
567+
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
568+
MTL_FAST_MATH = YES;
569+
PRODUCT_BUNDLE_IDENTIFIER = net.objecthub.NumberKit;
570+
PRODUCT_NAME = NumberKit;
571+
SDKROOT = iphoneos;
572+
SKIP_INSTALL = YES;
573+
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
574+
SWIFT_VERSION = 5.0;
575+
TARGETED_DEVICE_FAMILY = "1,2";
576+
};
577+
name = Debug;
578+
};
579+
CCD2603F23F20F7200DFE5A4 /* Release */ = {
580+
isa = XCBuildConfiguration;
581+
buildSettings = {
582+
CLANG_ANALYZER_NONNULL = YES;
583+
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
584+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
585+
CLANG_ENABLE_OBJC_WEAK = YES;
586+
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
587+
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
588+
CODE_SIGN_STYLE = Automatic;
589+
CURRENT_PROJECT_VERSION = 1;
590+
DEFINES_MODULE = YES;
591+
DEVELOPMENT_TEAM = C72Z63N8M5;
592+
DYLIB_COMPATIBILITY_VERSION = 1;
593+
DYLIB_CURRENT_VERSION = 1;
594+
DYLIB_INSTALL_NAME_BASE = "@rpath";
595+
GCC_C_LANGUAGE_STANDARD = gnu11;
596+
INFOPLIST_FILE = "$(SRCROOT)/Sources/NumberKit iOS/Info.plist";
597+
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
598+
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
599+
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
600+
MARKETING_VERSION = 2.3.4;
601+
MTL_FAST_MATH = YES;
602+
PRODUCT_BUNDLE_IDENTIFIER = net.objecthub.NumberKit;
603+
PRODUCT_NAME = NumberKit;
604+
SDKROOT = iphoneos;
605+
SKIP_INSTALL = YES;
606+
SWIFT_VERSION = 5.0;
607+
TARGETED_DEVICE_FAMILY = "1,2";
608+
VALIDATE_PRODUCT = YES;
609+
};
610+
name = Release;
611+
};
458612
/* End XCBuildConfiguration section */
459613

460614
/* Begin XCConfigurationList section */
@@ -485,6 +639,15 @@
485639
defaultConfigurationIsVisible = 0;
486640
defaultConfigurationName = Release;
487641
};
642+
CCD2604023F20F7200DFE5A4 /* Build configuration list for PBXNativeTarget "NumberKit iOS" */ = {
643+
isa = XCConfigurationList;
644+
buildConfigurations = (
645+
CCD2603E23F20F7200DFE5A4 /* Debug */,
646+
CCD2603F23F20F7200DFE5A4 /* Release */,
647+
);
648+
defaultConfigurationIsVisible = 0;
649+
defaultConfigurationName = Release;
650+
};
488651
/* End XCConfigurationList section */
489652
};
490653
rootObject = CC99F5461B7AA6E200355E1E /* Project object */;

Package.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ import PackageDescription
2323

2424
let package = Package(
2525
name: "NumberKit",
26+
platforms: [
27+
.macOS(.v10_12),
28+
.iOS(.v11)
29+
],
2630
products: [
2731
.library(name: "NumberKit", targets: ["NumberKit"])
2832
],

Sources/NumberKit iOS/Info.plist

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>CFBundleDevelopmentRegion</key>
6+
<string>$(DEVELOPMENT_LANGUAGE)</string>
7+
<key>CFBundleExecutable</key>
8+
<string>$(EXECUTABLE_NAME)</string>
9+
<key>CFBundleIdentifier</key>
10+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
11+
<key>CFBundleInfoDictionaryVersion</key>
12+
<string>6.0</string>
13+
<key>CFBundleName</key>
14+
<string>$(PRODUCT_NAME)</string>
15+
<key>CFBundlePackageType</key>
16+
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
17+
<key>CFBundleShortVersionString</key>
18+
<string>$(MARKETING_VERSION)</string>
19+
<key>CFBundleVersion</key>
20+
<string>$(CURRENT_PROJECT_VERSION)</string>
21+
<key>NSHumanReadableCopyright</key>
22+
<string>Copyright © 2015–2020 Matthias Zenger. All rights reserved.</string>
23+
</dict>
24+
</plist>

Sources/NumberKit iOS/NumberKit_iOS.h

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
//
2+
// NumberKit_iOS.h
3+
// NumberKit-iOS
4+
//
5+
// Created by Matthias Zenger on 10/02/2020.
6+
// Copyright © 2015-2020 Matthias Zenger. All rights reserved.
7+
//
8+
// Licensed under the Apache License, Version 2.0 (the "License");
9+
// you may not use this file except in compliance with the License.
10+
// You may obtain a copy of the License at
11+
//
12+
// http://www.apache.org/licenses/LICENSE-2.0
13+
//
14+
// Unless required by applicable law or agreed to in writing, software
15+
// distributed under the License is distributed on an "AS IS" BASIS,
16+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17+
// See the License for the specific language governing permissions and
18+
// limitations under the License.
19+
//
20+
21+
#import <Foundation/Foundation.h>
22+
23+
//! Project version number for NumberKit_iOS.
24+
FOUNDATION_EXPORT double NumberKit_iOSVersionNumber;
25+
26+
//! Project version string for NumberKit_iOS.
27+
FOUNDATION_EXPORT const unsigned char NumberKit_iOSVersionString[];
28+
29+
// In this header, you should import all the public headers of your framework using statements like #import <NumberKit_iOS/PublicHeader.h>
30+
31+

Sources/NumberKit/Info.plist

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,5 @@
2222
<string>$(CURRENT_PROJECT_VERSION)</string>
2323
<key>NSHumanReadableCopyright</key>
2424
<string>Copyright © 2015–2020 Matthias Zenger. All rights reserved.</string>
25-
<key>NSPrincipalClass</key>
26-
<string></string>
2725
</dict>
2826
</plist>

0 commit comments

Comments
 (0)