Skip to content

Commit ee99870

Browse files
committed
add tvOS support. close #23.
1 parent 2a4c44e commit ee99870

File tree

9 files changed

+244
-18
lines changed

9 files changed

+244
-18
lines changed

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,3 @@ DerivedData
1919
.idea/
2020
*.hmap
2121
*.xccheckout
22-
23-
_docs/

JSQSystemSoundPlayer.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'JSQSystemSoundPlayer'
3-
s.version = '4.2.0'
3+
s.version = '4.3.0'
44
s.license = 'MIT'
55

66
s.summary = 'A fancy Obj-C wrapper for Cocoa System Sound Services'

JSQSystemSoundPlayer/JSQSystemSoundPlayer-OSX/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<key>CFBundlePackageType</key>
1616
<string>FMWK</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>4.2.0</string>
18+
<string>4.3.0</string>
1919
<key>CFBundleSignature</key>
2020
<string>????</string>
2121
<key>CFBundleVersion</key>
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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>en</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>FMWK</string>
17+
<key>CFBundleShortVersionString</key>
18+
<string>4.3.0</string>
19+
<key>CFBundleSignature</key>
20+
<string>????</string>
21+
<key>CFBundleVersion</key>
22+
<string>$(CURRENT_PROJECT_VERSION)</string>
23+
<key>NSPrincipalClass</key>
24+
<string></string>
25+
</dict>
26+
</plist>

JSQSystemSoundPlayer/JSQSystemSoundPlayer.xcodeproj/project.pbxproj

Lines changed: 118 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
8892FAAA1AF6E4DA00F2D347 /* JSQSystemSoundPlayer.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8892FA9E1AF6E4DA00F2D347 /* JSQSystemSoundPlayer.framework */; };
1717
8892FAB11AF6E4DA00F2D347 /* JSQSystemSoundPlayerTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 8892FAB01AF6E4DA00F2D347 /* JSQSystemSoundPlayerTests.m */; };
1818
8892FABB1AF6E4F500F2D347 /* JSQSystemSoundPlayer.m in Sources */ = {isa = PBXBuildFile; fileRef = 8892FABA1AF6E4F500F2D347 /* JSQSystemSoundPlayer.m */; };
19+
88F469371C0BE3A2001F70F4 /* JSQSystemSoundPlayer.h in Headers */ = {isa = PBXBuildFile; fileRef = 8892FAA31AF6E4DA00F2D347 /* JSQSystemSoundPlayer.h */; settings = {ATTRIBUTES = (Public, ); }; };
20+
88F469381C0BE3A2001F70F4 /* JSQSystemSoundPlayer.m in Sources */ = {isa = PBXBuildFile; fileRef = 8892FABA1AF6E4F500F2D347 /* JSQSystemSoundPlayer.m */; };
1921
/* End PBXBuildFile section */
2022

2123
/* Begin PBXContainerItemProxy section */
@@ -41,6 +43,8 @@
4143
8892FAAF1AF6E4DA00F2D347 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
4244
8892FAB01AF6E4DA00F2D347 /* JSQSystemSoundPlayerTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = JSQSystemSoundPlayerTests.m; sourceTree = "<group>"; };
4345
8892FABA1AF6E4F500F2D347 /* JSQSystemSoundPlayer.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = JSQSystemSoundPlayer.m; sourceTree = "<group>"; };
46+
88F4692F1C0BE399001F70F4 /* JSQSystemSoundPlayer.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = JSQSystemSoundPlayer.framework; sourceTree = BUILT_PRODUCTS_DIR; };
47+
88F469331C0BE399001F70F4 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
4448
/* End PBXFileReference section */
4549

4650
/* Begin PBXFrameworksBuildPhase section */
@@ -66,6 +70,13 @@
6670
);
6771
runOnlyForDeploymentPostprocessing = 0;
6872
};
73+
88F4692B1C0BE399001F70F4 /* Frameworks */ = {
74+
isa = PBXFrameworksBuildPhase;
75+
buildActionMask = 2147483647;
76+
files = (
77+
);
78+
runOnlyForDeploymentPostprocessing = 0;
79+
};
6980
/* End PBXFrameworksBuildPhase section */
7081

7182
/* Begin PBXGroup section */
@@ -93,6 +104,7 @@
93104
8892FAA01AF6E4DA00F2D347 /* JSQSystemSoundPlayer */,
94105
8892FAAD1AF6E4DA00F2D347 /* JSQSystemSoundPlayerTests */,
95106
884DF6641AF6E96700D97D16 /* JSQSystemSoundPlayer-OSX */,
107+
88F469301C0BE399001F70F4 /* JSQSystemSoundPlayer-tvOS */,
96108
8892FA9F1AF6E4DA00F2D347 /* Products */,
97109
);
98110
sourceTree = "<group>";
@@ -103,6 +115,7 @@
103115
8892FA9E1AF6E4DA00F2D347 /* JSQSystemSoundPlayer.framework */,
104116
8892FAA91AF6E4DA00F2D347 /* JSQSystemSoundPlayerTests.xctest */,
105117
884DF6631AF6E96700D97D16 /* JSQSystemSoundPlayer.framework */,
118+
88F4692F1C0BE399001F70F4 /* JSQSystemSoundPlayer.framework */,
106119
);
107120
name = Products;
108121
sourceTree = "<group>";
@@ -127,6 +140,14 @@
127140
path = JSQSystemSoundPlayerTests;
128141
sourceTree = "<group>";
129142
};
143+
88F469301C0BE399001F70F4 /* JSQSystemSoundPlayer-tvOS */ = {
144+
isa = PBXGroup;
145+
children = (
146+
88F469331C0BE399001F70F4 /* Info.plist */,
147+
);
148+
path = "JSQSystemSoundPlayer-tvOS";
149+
sourceTree = "<group>";
150+
};
130151
/* End PBXGroup section */
131152

132153
/* Begin PBXHeadersBuildPhase section */
@@ -146,6 +167,14 @@
146167
);
147168
runOnlyForDeploymentPostprocessing = 0;
148169
};
170+
88F4692C1C0BE399001F70F4 /* Headers */ = {
171+
isa = PBXHeadersBuildPhase;
172+
buildActionMask = 2147483647;
173+
files = (
174+
88F469371C0BE3A2001F70F4 /* JSQSystemSoundPlayer.h in Headers */,
175+
);
176+
runOnlyForDeploymentPostprocessing = 0;
177+
};
149178
/* End PBXHeadersBuildPhase section */
150179

151180
/* Begin PBXNativeTarget section */
@@ -203,6 +232,24 @@
203232
productReference = 8892FAA91AF6E4DA00F2D347 /* JSQSystemSoundPlayerTests.xctest */;
204233
productType = "com.apple.product-type.bundle.unit-test";
205234
};
235+
88F4692E1C0BE399001F70F4 /* JSQSystemSoundPlayer-tvOS */ = {
236+
isa = PBXNativeTarget;
237+
buildConfigurationList = 88F469341C0BE399001F70F4 /* Build configuration list for PBXNativeTarget "JSQSystemSoundPlayer-tvOS" */;
238+
buildPhases = (
239+
88F4692A1C0BE399001F70F4 /* Sources */,
240+
88F4692B1C0BE399001F70F4 /* Frameworks */,
241+
88F4692C1C0BE399001F70F4 /* Headers */,
242+
88F4692D1C0BE399001F70F4 /* Resources */,
243+
);
244+
buildRules = (
245+
);
246+
dependencies = (
247+
);
248+
name = "JSQSystemSoundPlayer-tvOS";
249+
productName = "JSQSystemSoundPlayer-tvOS";
250+
productReference = 88F4692F1C0BE399001F70F4 /* JSQSystemSoundPlayer.framework */;
251+
productType = "com.apple.product-type.framework";
252+
};
206253
/* End PBXNativeTarget section */
207254

208255
/* Begin PBXProject section */
@@ -222,6 +269,9 @@
222269
8892FAA81AF6E4DA00F2D347 = {
223270
CreatedOnToolsVersion = 6.3.1;
224271
};
272+
88F4692E1C0BE399001F70F4 = {
273+
CreatedOnToolsVersion = 7.1.1;
274+
};
225275
};
226276
};
227277
buildConfigurationList = 8892FA981AF6E4DA00F2D347 /* Build configuration list for PBXProject "JSQSystemSoundPlayer" */;
@@ -239,6 +289,7 @@
239289
8892FA9D1AF6E4DA00F2D347 /* JSQSystemSoundPlayer-iOS */,
240290
8892FAA81AF6E4DA00F2D347 /* JSQSystemSoundPlayerTests */,
241291
884DF6621AF6E96700D97D16 /* JSQSystemSoundPlayer-OSX */,
292+
88F4692E1C0BE399001F70F4 /* JSQSystemSoundPlayer-tvOS */,
242293
);
243294
};
244295
/* End PBXProject section */
@@ -268,6 +319,13 @@
268319
);
269320
runOnlyForDeploymentPostprocessing = 0;
270321
};
322+
88F4692D1C0BE399001F70F4 /* Resources */ = {
323+
isa = PBXResourcesBuildPhase;
324+
buildActionMask = 2147483647;
325+
files = (
326+
);
327+
runOnlyForDeploymentPostprocessing = 0;
328+
};
271329
/* End PBXResourcesBuildPhase section */
272330

273331
/* Begin PBXSourcesBuildPhase section */
@@ -295,6 +353,14 @@
295353
);
296354
runOnlyForDeploymentPostprocessing = 0;
297355
};
356+
88F4692A1C0BE399001F70F4 /* Sources */ = {
357+
isa = PBXSourcesBuildPhase;
358+
buildActionMask = 2147483647;
359+
files = (
360+
88F469381C0BE3A2001F70F4 /* JSQSystemSoundPlayer.m in Sources */,
361+
);
362+
runOnlyForDeploymentPostprocessing = 0;
363+
};
298364
/* End PBXSourcesBuildPhase section */
299365

300366
/* Begin PBXTargetDependency section */
@@ -389,7 +455,7 @@
389455
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
390456
GCC_WARN_UNUSED_FUNCTION = YES;
391457
GCC_WARN_UNUSED_VARIABLE = YES;
392-
IPHONEOS_DEPLOYMENT_TARGET = 6.0;
458+
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
393459
MACOSX_DEPLOYMENT_TARGET = 10.7;
394460
MTL_ENABLE_DEBUG_INFO = YES;
395461
ONLY_ACTIVE_ARCH = YES;
@@ -431,7 +497,7 @@
431497
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
432498
GCC_WARN_UNUSED_FUNCTION = YES;
433499
GCC_WARN_UNUSED_VARIABLE = YES;
434-
IPHONEOS_DEPLOYMENT_TARGET = 6.0;
500+
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
435501
MACOSX_DEPLOYMENT_TARGET = 10.7;
436502
MTL_ENABLE_DEBUG_INFO = NO;
437503
SDKROOT = iphoneos;
@@ -451,6 +517,7 @@
451517
DYLIB_INSTALL_NAME_BASE = "@rpath";
452518
INFOPLIST_FILE = JSQSystemSoundPlayer/Info.plist;
453519
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
520+
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
454521
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
455522
PRODUCT_BUNDLE_IDENTIFIER = "com.hexedbits.$(PRODUCT_NAME:rfc1034identifier)";
456523
PRODUCT_NAME = JSQSystemSoundPlayer;
@@ -467,6 +534,7 @@
467534
DYLIB_INSTALL_NAME_BASE = "@rpath";
468535
INFOPLIST_FILE = JSQSystemSoundPlayer/Info.plist;
469536
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
537+
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
470538
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
471539
PRODUCT_BUNDLE_IDENTIFIER = "com.hexedbits.$(PRODUCT_NAME:rfc1034identifier)";
472540
PRODUCT_NAME = JSQSystemSoundPlayer;
@@ -500,6 +568,46 @@
500568
};
501569
name = Release;
502570
};
571+
88F469351C0BE399001F70F4 /* Debug */ = {
572+
isa = XCBuildConfiguration;
573+
buildSettings = {
574+
DEBUG_INFORMATION_FORMAT = dwarf;
575+
DEFINES_MODULE = YES;
576+
DYLIB_COMPATIBILITY_VERSION = 1;
577+
DYLIB_CURRENT_VERSION = 1;
578+
DYLIB_INSTALL_NAME_BASE = "@rpath";
579+
INFOPLIST_FILE = "JSQSystemSoundPlayer-tvOS/Info.plist";
580+
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
581+
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
582+
PRODUCT_BUNDLE_IDENTIFIER = "com.hexedbits.JSQSystemSoundPlayer-tvOS";
583+
PRODUCT_NAME = JSQSystemSoundPlayer;
584+
SDKROOT = appletvos;
585+
SKIP_INSTALL = YES;
586+
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
587+
TARGETED_DEVICE_FAMILY = 3;
588+
TVOS_DEPLOYMENT_TARGET = 9.0;
589+
};
590+
name = Debug;
591+
};
592+
88F469361C0BE399001F70F4 /* Release */ = {
593+
isa = XCBuildConfiguration;
594+
buildSettings = {
595+
DEFINES_MODULE = YES;
596+
DYLIB_COMPATIBILITY_VERSION = 1;
597+
DYLIB_CURRENT_VERSION = 1;
598+
DYLIB_INSTALL_NAME_BASE = "@rpath";
599+
INFOPLIST_FILE = "JSQSystemSoundPlayer-tvOS/Info.plist";
600+
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
601+
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
602+
PRODUCT_BUNDLE_IDENTIFIER = "com.hexedbits.JSQSystemSoundPlayer-tvOS";
603+
PRODUCT_NAME = JSQSystemSoundPlayer;
604+
SDKROOT = appletvos;
605+
SKIP_INSTALL = YES;
606+
TARGETED_DEVICE_FAMILY = 3;
607+
TVOS_DEPLOYMENT_TARGET = 9.0;
608+
};
609+
name = Release;
610+
};
503611
/* End XCBuildConfiguration section */
504612

505613
/* Begin XCConfigurationList section */
@@ -539,6 +647,14 @@
539647
defaultConfigurationIsVisible = 0;
540648
defaultConfigurationName = Release;
541649
};
650+
88F469341C0BE399001F70F4 /* Build configuration list for PBXNativeTarget "JSQSystemSoundPlayer-tvOS" */ = {
651+
isa = XCConfigurationList;
652+
buildConfigurations = (
653+
88F469351C0BE399001F70F4 /* Debug */,
654+
88F469361C0BE399001F70F4 /* Release */,
655+
);
656+
defaultConfigurationIsVisible = 0;
657+
};
542658
/* End XCConfigurationList section */
543659
};
544660
rootObject = 8892FA951AF6E4DA00F2D347 /* Project object */;
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "0710"
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 = "88F4692E1C0BE399001F70F4"
18+
BuildableName = "JSQSystemSoundPlayer.framework"
19+
BlueprintName = "JSQSystemSoundPlayer-tvOS"
20+
ReferencedContainer = "container:JSQSystemSoundPlayer.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+
<AdditionalOptions>
33+
</AdditionalOptions>
34+
</TestAction>
35+
<LaunchAction
36+
buildConfiguration = "Debug"
37+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
38+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
39+
launchStyle = "0"
40+
useCustomWorkingDirectory = "NO"
41+
ignoresPersistentStateOnLaunch = "NO"
42+
debugDocumentVersioning = "YES"
43+
debugServiceExtension = "internal"
44+
allowLocationSimulation = "YES">
45+
<MacroExpansion>
46+
<BuildableReference
47+
BuildableIdentifier = "primary"
48+
BlueprintIdentifier = "88F4692E1C0BE399001F70F4"
49+
BuildableName = "JSQSystemSoundPlayer.framework"
50+
BlueprintName = "JSQSystemSoundPlayer-tvOS"
51+
ReferencedContainer = "container:JSQSystemSoundPlayer.xcodeproj">
52+
</BuildableReference>
53+
</MacroExpansion>
54+
<AdditionalOptions>
55+
</AdditionalOptions>
56+
</LaunchAction>
57+
<ProfileAction
58+
buildConfiguration = "Release"
59+
shouldUseLaunchSchemeArgsEnv = "YES"
60+
savedToolIdentifier = ""
61+
useCustomWorkingDirectory = "NO"
62+
debugDocumentVersioning = "YES">
63+
<MacroExpansion>
64+
<BuildableReference
65+
BuildableIdentifier = "primary"
66+
BlueprintIdentifier = "88F4692E1C0BE399001F70F4"
67+
BuildableName = "JSQSystemSoundPlayer.framework"
68+
BlueprintName = "JSQSystemSoundPlayer-tvOS"
69+
ReferencedContainer = "container:JSQSystemSoundPlayer.xcodeproj">
70+
</BuildableReference>
71+
</MacroExpansion>
72+
</ProfileAction>
73+
<AnalyzeAction
74+
buildConfiguration = "Debug">
75+
</AnalyzeAction>
76+
<ArchiveAction
77+
buildConfiguration = "Release"
78+
revealArchiveInOrganizer = "YES">
79+
</ArchiveAction>
80+
</Scheme>

JSQSystemSoundPlayer/JSQSystemSoundPlayer/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<key>CFBundlePackageType</key>
1616
<string>FMWK</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>4.2.0</string>
18+
<string>4.3.0</string>
1919
<key>CFBundleSignature</key>
2020
<string>????</string>
2121
<key>CFBundleVersion</key>

0 commit comments

Comments
 (0)