From 692e1943b84061cfcb7afe4d29d32f9297eaac77 Mon Sep 17 00:00:00 2001 From: Petr Korolev Date: Tue, 7 Jul 2015 10:56:12 +0300 Subject: [PATCH] fix framework linking to be able run project on simulators and devices --- Example/Example.xcodeproj/project.pbxproj | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/Example/Example.xcodeproj/project.pbxproj b/Example/Example.xcodeproj/project.pbxproj index 9b53b8e..b57926b 100644 --- a/Example/Example.xcodeproj/project.pbxproj +++ b/Example/Example.xcodeproj/project.pbxproj @@ -7,7 +7,6 @@ objects = { /* Begin PBXBuildFile section */ - 1C8603F21B49DFB2005F495B /* GaugeKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1C8603F11B49DFB2005F495B /* GaugeKit.framework */; }; 1C9404FB1B31D057001BF122 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1C9404FA1B31D057001BF122 /* AppDelegate.swift */; }; 1C9405001B31D057001BF122 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 1C9404FE1B31D057001BF122 /* Main.storyboard */; }; 1C9405021B31D057001BF122 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 1C9405011B31D057001BF122 /* Images.xcassets */; }; @@ -15,6 +14,8 @@ 1C9405111B31D057001BF122 /* ExampleTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1C9405101B31D057001BF122 /* ExampleTests.swift */; }; 1C94051B1B31D12D001BF122 /* MainViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1C94051A1B31D12D001BF122 /* MainViewController.swift */; }; 1CE31D5C1B345569006E4F7C /* AppleGaugeViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1CE31D5B1B345569006E4F7C /* AppleGaugeViewController.swift */; }; + 1CE6536E1B4BBD3C00FA4569 /* GaugeKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1CE6536D1B4BBD3C00FA4569 /* GaugeKit.framework */; }; + 1CE6536F1B4BBD3C00FA4569 /* GaugeKit.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 1CE6536D1B4BBD3C00FA4569 /* GaugeKit.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ @@ -27,6 +28,20 @@ }; /* End PBXContainerItemProxy section */ +/* Begin PBXCopyFilesBuildPhase section */ + 1CE653701B4BBD3C00FA4569 /* Embed Frameworks */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = ""; + dstSubfolderSpec = 10; + files = ( + 1CE6536F1B4BBD3C00FA4569 /* GaugeKit.framework in Embed Frameworks */, + ); + name = "Embed Frameworks"; + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXCopyFilesBuildPhase section */ + /* Begin PBXFileReference section */ 1C8603F11B49DFB2005F495B /* GaugeKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = GaugeKit.framework; path = "../build/Debug-iphoneos/GaugeKit.framework"; sourceTree = ""; }; 1C9404F51B31D057001BF122 /* Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Example.app; sourceTree = BUILT_PRODUCTS_DIR; }; @@ -40,6 +55,7 @@ 1C9405101B31D057001BF122 /* ExampleTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ExampleTests.swift; sourceTree = ""; }; 1C94051A1B31D12D001BF122 /* MainViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = MainViewController.swift; sourceTree = ""; }; 1CE31D5B1B345569006E4F7C /* AppleGaugeViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppleGaugeViewController.swift; sourceTree = ""; }; + 1CE6536D1B4BBD3C00FA4569 /* GaugeKit.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; name = GaugeKit.framework; path = "/Users/petrkorolev/Library/Developer/Xcode/DerivedData/GaugeKit-bmbifmbfuibegzaycqpznxyhungq/Build/Products/Debug-iphoneos/GaugeKit.framework"; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -47,7 +63,7 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - 1C8603F21B49DFB2005F495B /* GaugeKit.framework in Frameworks */, + 1CE6536E1B4BBD3C00FA4569 /* GaugeKit.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -64,6 +80,7 @@ 1C9404EC1B31D057001BF122 = { isa = PBXGroup; children = ( + 1CE6536D1B4BBD3C00FA4569 /* GaugeKit.framework */, 1C8603F11B49DFB2005F495B /* GaugeKit.framework */, 1C9404F71B31D057001BF122 /* Example */, 1C94050D1B31D057001BF122 /* ExampleTests */, @@ -129,6 +146,7 @@ 1C9404F11B31D057001BF122 /* Sources */, 1C9404F21B31D057001BF122 /* Frameworks */, 1C9404F31B31D057001BF122 /* Resources */, + 1CE653701B4BBD3C00FA4569 /* Embed Frameworks */, ); buildRules = ( );