Quantcast
Channel: Questions in topic: "build"
Viewing all articles
Browse latest Browse all 4084

Is it possible to use the Xcode Manipulation API to add files to the Embedded Binaries build step?

$
0
0
I need to add a framework to the Embed Binaries build step in Xcode. I've asked this before but I think maybe my question was badly phrased or incomplete. If this is easy, ignore the detailed description below. Thank you! Within Xcode this is as simple as dragging your framework into the **Embedded Binaries** area in the targets **General** page. ![embedded frameworks][1] This creates a build phase called **Embed Frameworks** ![build step for embedding frameworks added][2] The project.pbxproj file changes are... PBXBuildFile section reference added C5E4C9731BBC78F4007C4CD8 /* MyEmbedded.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = C8FC40EFB7EB18859284D579 /* MyEmbedded.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; PBXCopyFilesBuildPhase section added C5E4C9741BBC78F4007C4CD8 /* Embed Frameworks */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = ""; dstSubfolderSpec = 10; files = ( C5E4C9731BBC78F4007C4CD8 /* MyEmbedded.framework in Embed Frameworks */, ); name = "Embed Frameworks"; runOnlyForDeploymentPostprocessing = 0; }; PBXNativeTarget section changed to include Embed Frameworks phase 1D6058900D05DD3D006BFB54 /* Unity-iPhone */ = { isa = PBXNativeTarget; buildConfigurationList = 1D6058960D05DD3E006BFB54 /* Build configuration list for PBXNativeTarget "Unity-iPhone" */; buildPhases = ( 1D60588D0D05DD3D006BFB54 /* Resources */, 83D0C1FB0E6C8D5900EBCE5D /* ShellScript */, 83D0C1FD0E6C8D7700EBCE5D /* CopyFiles */, 1D60588E0D05DD3D006BFB54 /* Sources */, 1D60588F0D05DD3D006BFB54 /* Frameworks */, 033966F41B18B03000ECD701 /* ShellScript */, C5E4C9741BBC78F4007C4CD8 /* Embed Frameworks */, ); buildRules = ( ); dependencies = ( ); name = "Unity-iPhone"; productName = "iPhone-target"; productReference = 1D6058910D05DD3D006BFB54 /* awesumfree.app */; productType = "com.apple.product-type.application"; }; Finally, and I'm not sure if this is required, XCBuildConfiguration section for all builds (Debug, Release etc.) sets this LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; Hopefully this is detailed enough to get me an answer. I'd really love to be able to build this with Cloud Build but that will only work if I can set this stuff up in a PostProcessBuild function. [1]: /storage/temp/55289-screen-shot-2015-09-30-at-31027-pm.png [2]: /storage/temp/55290-screen-shot-2015-09-30-at-31059-pm.png

Viewing all articles
Browse latest Browse all 4084

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>