Skip to content

Commit 382c9c6

Browse files
Merge pull request #26 from telerik/vladimirov/xcode-9
Enable building with Xcode 9.0
2 parents 5756a5d + 6571697 commit 382c9c6

File tree

3 files changed

+26
-2
lines changed

3 files changed

+26
-2
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -276,3 +276,6 @@ xcuserdata/
276276

277277
### VS Code
278278
.vscode
279+
280+
### The following folder is present because of a workaround for MobileDevice.framework and Xcode 9.0
281+
.frameworks/*

.npmignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ x86/*
99
DerivedData
1010
**/*.pdb
1111
**/*.ipdb
12-
**/*.iobj
12+
**/*.iobj
13+
.frameworks/*

IOSDeviceLib.xcodeproj/project.pbxproj

+21-1
Original file line numberDiff line numberDiff line change
@@ -1110,6 +1110,7 @@
11101110
isa = PBXNativeTarget;
11111111
buildConfigurationList = 70F6ADB21DEEB71300DD4722 /* Build configuration list for PBXNativeTarget "IOSDeviceLib" */;
11121112
buildPhases = (
1113+
4B3F4EB41F7E7D24009F5530 /* Run Script */,
11131114
70F6ADA71DEEB71300DD4722 /* Sources */,
11141115
70F6ADA81DEEB71300DD4722 /* Frameworks */,
11151116
70F6ADA91DEEB71300DD4722 /* CopyFiles */,
@@ -1154,6 +1155,23 @@
11541155
};
11551156
/* End PBXProject section */
11561157

1158+
/* Begin PBXShellScriptBuildPhase section */
1159+
4B3F4EB41F7E7D24009F5530 /* Run Script */ = {
1160+
isa = PBXShellScriptBuildPhase;
1161+
buildActionMask = 2147483647;
1162+
files = (
1163+
);
1164+
inputPaths = (
1165+
);
1166+
name = "Run Script";
1167+
outputPaths = (
1168+
);
1169+
runOnlyForDeploymentPostprocessing = 0;
1170+
shellPath = /bin/sh;
1171+
shellScript = "mobileDeviceFrameworkPath=/System/Library/PrivateFrameworks/MobileDevice.framework\nprojectFrameworksPath=\"${PROJECT_DIR}/.frameworks\"\necho Copying private frameworks...\n(test -d $mobileDeviceFrameworkPath && mkdir -p \"$projectFrameworksPath\" && cp -r $mobileDeviceFrameworkPath \"$projectFrameworksPath\" && echo Copy completed) || echo Done";
1172+
};
1173+
/* End PBXShellScriptBuildPhase section */
1174+
11571175
/* Begin PBXSourcesBuildPhase section */
11581176
70F6ADA71DEEB71300DD4722 /* Sources */ = {
11591177
isa = PBXSourcesBuildPhase;
@@ -1263,6 +1281,7 @@
12631281
FRAMEWORK_SEARCH_PATHS = (
12641282
"$(inherited)",
12651283
"$(SYSTEM_LIBRARY_DIR)/PrivateFrameworks",
1284+
"$(PROJECT_DIR)/.frameworks",
12661285
);
12671286
HEADER_SEARCH_PATHS = "$(SRCROOT)/IOSDeviceLib/PlistCpp/include/**";
12681287
PRODUCT_NAME = "ios-device-lib";
@@ -1277,6 +1296,7 @@
12771296
FRAMEWORK_SEARCH_PATHS = (
12781297
"$(inherited)",
12791298
"$(SYSTEM_LIBRARY_DIR)/PrivateFrameworks",
1299+
"$(PROJECT_DIR)/.frameworks",
12801300
);
12811301
HEADER_SEARCH_PATHS = "$(SRCROOT)/IOSDeviceLib/PlistCpp/include/**";
12821302
PRODUCT_NAME = "ios-device-lib";
@@ -1308,4 +1328,4 @@
13081328
/* End XCConfigurationList section */
13091329
};
13101330
rootObject = 70F6ADA31DEEB71300DD4722 /* Project object */;
1311-
}
1331+
}

0 commit comments

Comments
 (0)