Running 1 out of 1 custom shell scripts

I am creating a framework, trying to compile the framework for production using the shell script user code, it freezes this step.

This is the special shell script code:

# define output folder environment variable
UNIVERSAL_OUTPUTFOLDER=${BUILD_DIR}/${CONFIGURATION}-universal

# Step 1. Build Device and Simulator versions
xcodebuild -target SomeSDK ONLY_ACTIVE_ARCH=NO -configuration ${CONFIGURATION} -sdk iphoneos  BUILD_DIR="${BUILD_DIR}" BUILD_ROOT="${BUILD_ROOT}"
xcodebuild -target SomeSDK -configuration ${CONFIGURATION} -sdk iphonesimulator -arch i386 BUILD_DIR="${BUILD_DIR}" BUILD_ROOT="${BUILD_ROOT}"

# make sure the output directory exists
mkdir -p "${UNIVERSAL_OUTPUTFOLDER}"

# Step 2. Create universal binary file using lipo
lipo -create -output "${UNIVERSAL_OUTPUTFOLDER}/lib${PROJECT_NAME}.a" "${BUILD_DIR}/${CONFIGURATION}-iphoneos/lib${PROJECT_NAME}.a" "${BUILD_DIR}/${CONFIGURATION}-iphonesimulator/lib${PROJECT_NAME}.a"

# Last touch. copy the header files. Just for convenience
cp -R "${BUILD_DIR}/${CONFIGURATION}-iphoneos/include" "${UNIVERSAL_OUTPUTFOLDER}/"

This is the image where it hangs:

custom shell script

How can i fix this? Why is this happening?

+4
source share
1 answer

I found the answer to what I asked, I just did it wrong.

Let me start with the fact that all the tutorials on the Internet that show how to create iOS Static Libraryare missing something and are not perfect, at least that I saw that the reason I first had this problem.

, :

:

, Aggregate Target Custom Shell Script, Custom Shell Script , , . .

+ Targets, Other Aggregate. Custom Shell Script, .

.

!

+3

All Articles