2

I use the script to generate two types of ipa(contains today plugin and do not include today plugin).So I cannot add Embedded Binaries with Xcode. Does anyone know the command line how to add Embedded Binaries?

2
  • I'd like to know the answer to this too. No doubt the answer is buried in coco pods or Carthage scripts. Commented Jan 7, 2017 at 0:27
  • Got the answer ? Commented Sep 7, 2017 at 7:50

1 Answer 1

1

It's not entirely clear what your setup is, but this might help. I've done something similar by adding a 'New Run Script Phase' at the end of my target's Build Phases. Something like this:

rm -Rf "$TARGET_BUILD_DIR/$FRAMEWORKS_FOLDER_PATH/YOUR.framework"
mkdir -pv "$TARGET_BUILD_DIR/$FRAMEWORKS_FOLDER_PATH/YOUR.framework"
cp -R "SOURCE_FOLDER/YOUR.framework" "$TARGET_BUILD_DIR/$FRAMEWORKS_FOLDER_PATH"

Where SOURCE_FOLDER and YOUR.framework are placeholders for names according to your needs and configuration.

$TARGET_BUILD_DIR and $FRAMEWORKS_FOLDER_PATH are both defined by Xcode for you.

You've surely solved this by now but my answer may be of use to those who stumble across this in future, perhaps combined with user-defined build settings for parameterisation.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.