From 521ad96bc82913f2f668eb18545353959b3a3f49 Mon Sep 17 00:00:00 2001 From: Mark Ffrench Date: Mon, 4 Apr 2016 12:21:34 +0100 Subject: [PATCH 1/3] Correcting path to libz and libsqlite3 libraries (including updated file extension introduced in XCode 7.3 --- iOS Extras/PostprocessBuildPlayer_GA | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/iOS Extras/PostprocessBuildPlayer_GA b/iOS Extras/PostprocessBuildPlayer_GA index 01746b8..5d8e405 100755 --- a/iOS Extras/PostprocessBuildPlayer_GA +++ b/iOS Extras/PostprocessBuildPlayer_GA @@ -10,13 +10,14 @@ frameworks = [ 'AdSupport.framework', 'CoreData.framework', 'SystemConfiguration.framework', - 'libz.dylib', - 'libsqlite3.dylib' ] -framework_dir = path.join(sys.argv[0],'..','..','Plugins','iOS') - +libs = [ + 'libz.tbd', + 'libsqlite3.tbd' + ] +framework_dir = path.join(sys.argv[0],'..','..','Plugins','iOS') pbx_file_path = sys.argv[1] + '/Unity-iPhone.xcodeproj/project.pbxproj' pbx_object = XcodeProject.Load(pbx_file_path) @@ -24,6 +25,9 @@ pbx_object = XcodeProject.Load(pbx_file_path) pbx_object.add_framework_search_paths([path.abspath(framework_dir)]) for framework in frameworks: - pbx_object.add_file('System/Library/' + framework, tree='SDKROOT') + pbx_object.add_file('System/Library/Frameworks/' + framework, tree='SDKROOT') + +for lib in libs: + pbx_object.add_file('usr/lib/' + lib, tree='SDKROOT') pbx_object.save() From 607526174fdf2969ca6631b490b7b9eec3d16ffb Mon Sep 17 00:00:00 2001 From: Mark Ffrench Date: Mon, 4 Apr 2016 12:37:59 +0100 Subject: [PATCH 2/3] Revert "Correcting path to libz and libsqlite3 libraries (including updated file extension introduced in XCode 7.3" This reverts commit 521ad96bc82913f2f668eb18545353959b3a3f49. --- iOS Extras/PostprocessBuildPlayer_GA | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/iOS Extras/PostprocessBuildPlayer_GA b/iOS Extras/PostprocessBuildPlayer_GA index 5d8e405..01746b8 100755 --- a/iOS Extras/PostprocessBuildPlayer_GA +++ b/iOS Extras/PostprocessBuildPlayer_GA @@ -10,24 +10,20 @@ frameworks = [ 'AdSupport.framework', 'CoreData.framework', 'SystemConfiguration.framework', + 'libz.dylib', + 'libsqlite3.dylib' ] -libs = [ - 'libz.tbd', - 'libsqlite3.tbd' - ] - framework_dir = path.join(sys.argv[0],'..','..','Plugins','iOS') + + pbx_file_path = sys.argv[1] + '/Unity-iPhone.xcodeproj/project.pbxproj' pbx_object = XcodeProject.Load(pbx_file_path) pbx_object.add_framework_search_paths([path.abspath(framework_dir)]) for framework in frameworks: - pbx_object.add_file('System/Library/Frameworks/' + framework, tree='SDKROOT') - -for lib in libs: - pbx_object.add_file('usr/lib/' + lib, tree='SDKROOT') + pbx_object.add_file('System/Library/' + framework, tree='SDKROOT') pbx_object.save() From 07c016eaf56eb82e3c6089512a80137683e684e3 Mon Sep 17 00:00:00 2001 From: Mark Ffrench Date: Mon, 4 Apr 2016 12:41:15 +0100 Subject: [PATCH 3/3] Committing updated library paths with CLA-signed email address --- iOS Extras/PostprocessBuildPlayer_GA | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/iOS Extras/PostprocessBuildPlayer_GA b/iOS Extras/PostprocessBuildPlayer_GA index 01746b8..5d8e405 100755 --- a/iOS Extras/PostprocessBuildPlayer_GA +++ b/iOS Extras/PostprocessBuildPlayer_GA @@ -10,13 +10,14 @@ frameworks = [ 'AdSupport.framework', 'CoreData.framework', 'SystemConfiguration.framework', - 'libz.dylib', - 'libsqlite3.dylib' ] -framework_dir = path.join(sys.argv[0],'..','..','Plugins','iOS') - +libs = [ + 'libz.tbd', + 'libsqlite3.tbd' + ] +framework_dir = path.join(sys.argv[0],'..','..','Plugins','iOS') pbx_file_path = sys.argv[1] + '/Unity-iPhone.xcodeproj/project.pbxproj' pbx_object = XcodeProject.Load(pbx_file_path) @@ -24,6 +25,9 @@ pbx_object = XcodeProject.Load(pbx_file_path) pbx_object.add_framework_search_paths([path.abspath(framework_dir)]) for framework in frameworks: - pbx_object.add_file('System/Library/' + framework, tree='SDKROOT') + pbx_object.add_file('System/Library/Frameworks/' + framework, tree='SDKROOT') + +for lib in libs: + pbx_object.add_file('usr/lib/' + lib, tree='SDKROOT') pbx_object.save()