Skip to content

Commit

Permalink
Support OSX 10.3 or later
Browse files Browse the repository at this point in the history
  • Loading branch information
kyab committed Sep 4, 2020
1 parent 6e07de1 commit 30c4f48
Show file tree
Hide file tree
Showing 5 changed files with 76 additions and 14 deletions.
37 changes: 36 additions & 1 deletion DerivedData/MySpleeter/Logs/Debug/LogStoreManifest.plist
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,41 @@
<key>logFormatVersion</key>
<integer>10</integer>
<key>logs</key>
<dict/>
<dict>
<key>27C69FD4-5085-4178-9F68-2C0D04962C95</key>
<dict>
<key>className</key>
<string>DBGConsoleLog</string>
<key>documentTypeString</key>
<string>com.apple.dt.IDE.DebuggerLogContentType</string>
<key>domainType</key>
<string>Xcode.IDEActivityLogDomainType.DebugLog</string>
<key>fileName</key>
<string>27C69FD4-5085-4178-9F68-2C0D04962C95.xcactivitylog</string>
<key>hasPrimaryLog</key>
<true/>
<key>primaryObservable</key>
<dict>
<key>highLevelStatus</key>
<string>S</string>
</dict>
<key>schemeIdentifier-containerName</key>
<string>MySpleeter project</string>
<key>schemeIdentifier-schemeName</key>
<string>MySpleeter</string>
<key>schemeIdentifier-sharedScheme</key>
<integer>1</integer>
<key>signature</key>
<string>Debug MySpleeter</string>
<key>timeStartedRecording</key>
<real>620821423.58752799</real>
<key>timeStoppedRecording</key>
<real>620821426.40916598</real>
<key>title</key>
<string>Debug MySpleeter</string>
<key>uniqueIdentifier</key>
<string>27C69FD4-5085-4178-9F68-2C0D04962C95</string>
</dict>
</dict>
</dict>
</plist>
26 changes: 17 additions & 9 deletions MySpleeter.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
EB42FA8024FFEA18005F7B49 /* MySpleeterDebug.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = MySpleeterDebug.entitlements; sourceTree = "<group>"; };
EB716DE024FE543B00ED4FA1 /* MySpleeter.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = MySpleeter.app; sourceTree = BUILT_PRODUCTS_DIR; };
EB716DE324FE543B00ED4FA1 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
EB716DE424FE543B00ED4FA1 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
Expand Down Expand Up @@ -77,6 +78,7 @@
EB716DE224FE543B00ED4FA1 /* MySpleeter */ = {
isa = PBXGroup;
children = (
EB42FA8024FFEA18005F7B49 /* MySpleeterDebug.entitlements */,
EB716DF424FE54B700ED4FA1 /* AppController.h */,
EB716DF524FE54B700ED4FA1 /* AppController.m */,
EB716E0324FF9D1400ED4FA1 /* SpleeterWrapper.h */,
Expand Down Expand Up @@ -248,7 +250,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
MACOSX_DEPLOYMENT_TARGET = 10.15;
MACOSX_DEPLOYMENT_TARGET = 10.13;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
Expand Down Expand Up @@ -300,7 +302,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
MACOSX_DEPLOYMENT_TARGET = 10.15;
MACOSX_DEPLOYMENT_TARGET = 10.13;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
SDKROOT = macosx;
Expand All @@ -311,11 +313,13 @@
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_ENTITLEMENTS = MySpleeter/MySpleeter.entitlements;
CODE_SIGN_STYLE = Automatic;
CODE_SIGN_ENTITLEMENTS = MySpleeter/MySpleeterDebug.entitlements;
CODE_SIGN_IDENTITY = "-";
CODE_SIGN_INJECT_BASE_ENTITLEMENTS = NO;
CODE_SIGN_STYLE = Manual;
COMBINE_HIDPI_IMAGES = YES;
DEVELOPMENT_TEAM = A386R5WFZ6;
ENABLE_HARDENED_RUNTIME = NO;
DEVELOPMENT_TEAM = "";
ENABLE_HARDENED_RUNTIME = YES;
HEADER_SEARCH_PATHS = /Users/koji/work/mypython/devbuild/include/python3.7m;
INFOPLIST_FILE = MySpleeter/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
Expand All @@ -331,6 +335,7 @@
);
PRODUCT_BUNDLE_IDENTIFIER = com.kyab.MySpleeter;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
};
name = Debug;
};
Expand All @@ -339,10 +344,12 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_ENTITLEMENTS = MySpleeter/MySpleeter.entitlements;
CODE_SIGN_STYLE = Automatic;
CODE_SIGN_IDENTITY = "-";
CODE_SIGN_INJECT_BASE_ENTITLEMENTS = NO;
CODE_SIGN_STYLE = Manual;
COMBINE_HIDPI_IMAGES = YES;
DEVELOPMENT_TEAM = A386R5WFZ6;
ENABLE_HARDENED_RUNTIME = NO;
DEVELOPMENT_TEAM = "";
ENABLE_HARDENED_RUNTIME = YES;
HEADER_SEARCH_PATHS = /Users/koji/work/mypython/devbuild/include/python3.7m;
INFOPLIST_FILE = MySpleeter/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
Expand All @@ -358,6 +365,7 @@
);
PRODUCT_BUNDLE_IDENTIFIER = com.kyab.MySpleeter;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
};
name = Release;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,13 @@
<integer>0</integer>
</dict>
</dict>
<key>SuppressBuildableAutocreation</key>
<dict>
<key>EB716DDF24FE543B00ED4FA1</key>
<dict>
<key>primary</key>
<true/>
</dict>
</dict>
</dict>
</plist>
14 changes: 10 additions & 4 deletions MySpleeter/MySpleeter.entitlements
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,15 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.app-sandbox</key>
<true/>
<key>com.apple.security.files.user-selected.read-only</key>
<true/>
<key>com.apple.security.cs.allow-dyld-environment-variables</key>
<true/>
<key>com.apple.security.cs.allow-jit</key>
<true/>
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
<true/>
<key>com.apple.security.cs.disable-executable-page-protection</key>
<true/>
<key>com.apple.security.cs.disable-library-validation</key>
<true/>
</dict>
</plist>
5 changes: 5 additions & 0 deletions MySpleeter/SpleeterWrapper.m
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,11 @@ -(void)makeSeparator5stems{
NSLog(@"initializing separator...");
PyObject *pName = PyUnicode_DecodeFSDefault("spleeter.separator");
PyObject *pModule = PyImport_Import(pName);
if(!pModule){
NSString *pyErr = [self getPythonError];
NSLog(@"%@", pyErr);
return;
}
PyObject *pFunc = PyObject_GetAttrString(pModule, "Separator");
PyObject *pArgs = PyTuple_New(1);
PyObject *pArg = PyUnicode_DecodeFSDefault("spleeter:5stems");
Expand Down

0 comments on commit 30c4f48

Please sign in to comment.