xcode - Can you automatically embed a iOS framework in your executable? -


I have an iOS app, in which "Framework A" is placed as a subproject and it has a target dependency Has been included as. "Framework A" has a subproduct in "Framework B" and it is included as a Target dependency. In the end, "Framework B" is a sub-project in the form of "Framework C" and it has been included as a target dependency.

This project fineens and works perfectly in simulator but instant error dyld: Library has not been loaded: @ rpath / framework.frameworkwork / framework A .

The problem is that the "framework afframe" file is not automatically copied to the executable of the file app. You can add a "copy file" build step to your app target and you can specify that the "Framework Aframework" should be embedded in the executable, but this solution is not on the scale. You are still missing the "Framework Breathe Framework" and "Framework Seich Framework". For example, imagine that the complex dependency structure described in your question is. You must manually embed six structures in your executable and if the root framework has added more dependencies then the project will no longer be created. You have to remember to manually embed any new dependencies.

Nobody knows if your target dependency framework for Xcode is automatically embedded (like it happens with static libraries) or why is not Apple? Especially with iOS, it is absolutely absurd that the encoded build framework is to be placed in the build directory and then there is nothing with them.

itemprop = "text">

I could not find any way to do this Xcode automatically. Finally I wrote a script that I have added as a post build step

  framework directory = $ {CONFIGURATION_BUILD_DIR} / $ {CONTENTS_FOLDER_PATH} / framework mkdir -p "$ {framework directory } "Framework in" $ {CONFIGURATION_BUILD_DIR} "/ * if [-d" $ {framework} "]; For the structure in "$ {CONFIGURATION_BUILD_DIR} /../ release $ {EFFECTIVE_PLATFOR_NAME_NAME}" / *, the CP-R "$ {frame}" "$ {framework directory}" has been forfeited. If so, then [-d "$ {structure}"]; Then the CP-R "$ {frame}" "$ {frameworks}" completed  

Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -