File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 34
34
# Step 4. Create universal binary file using lipo and place the combined executable in the copied framework directory
35
35
lipo -create -output " ${UNIVERSAL_OUTPUTFOLDER} /${MODULE_NAME} .framework/${MODULE_NAME} " " ${BUILD_DIR} /${CONFIGURATION} -iphonesimulator/${MODULE_NAME} .framework/${MODULE_NAME} " " ${BUILD_DIR} /${CONFIGURATION} -iphoneos/${MODULE_NAME} .framework/${MODULE_NAME} "
36
36
37
+ # Step 4.5 Xcode10.2 Fix IterableSDK-Swift.h
38
+ # Workaround for known issue in Xcode 10.2: https://developer.apple.com/documentation/xcode_release_notes/xcode_10_2_release_notes#3136806
39
+ # Merge the simulator and device headers for the now-merged framework.
40
+ DEVICE_HEADER_PATH=" ${BUILD_DIR} /${CONFIGURATION} -iphoneos/${MODULE_NAME} .framework/Headers/${MODULE_NAME} -Swift.h"
41
+ SIMULATOR_HEADER_PATH=" ${BUILD_DIR} /${CONFIGURATION} -iphonesimulator/${MODULE_NAME} .framework/Headers/${MODULE_NAME} -Swift.h"
42
+ OUTPUT_HEADER_PATH=" ${UNIVERSAL_OUTPUTFOLDER} /${MODULE_NAME} .framework/Headers/${MODULE_NAME} -Swift.h"
43
+ cat " ${DEVICE_HEADER_PATH} " > " ${OUTPUT_HEADER_PATH} "
44
+ cat " ${SIMULATOR_HEADER_PATH} " >> " ${OUTPUT_HEADER_PATH} "
45
+
37
46
# Step 5. Convenience step to copy the framework to the build directory
38
47
cp -R " ${UNIVERSAL_OUTPUTFOLDER} /${MODULE_NAME} .framework" " ${BUILD_DIR} "
You can’t perform that action at this time.
0 commit comments