gurhub / surmagic

🚀 Command Line Tool to create XCFramework for multiple platforms in one shot!
MIT License
310 stars 43 forks source link

Xcode 11.5 and 11.4 issue #2

Closed AaoIi closed 4 years ago

AaoIi commented 4 years ago

Not working on Xcode 11.5 when generating a framework.

i have universalLib Target pointing to framework, so I've added the script for the universalLib not the framework target. for more details see the below picture: https://i.imgur.com/AxMXtwn.png

Details :

 ⏱ Starting the Universal Framework work... 

##################################################################

DEVICE_LIBRARY_PATH: /Users/mobilebuildserver/Library/Developer/Xcode/DerivedData/MYFRAMEWORK-fxtduirfbjhujbdypbycbxrddkjy/Build/Products/Debug-iphoneos/MYFRAMEWORK.framework
SIMULATOR_LIBRARY_PATH: /Users/mobilebuildserver/Library/Developer/Xcode/DerivedData/MYFRAMEWORK-fxtduirfbjhujbdypbycbxrddkjy/Build/Products/Debug-iphonesimulator/MYFRAMEWORK.framework
UNIVERSAL_LIBRARY_DIR: /Users/mobilebuildserver/Library/Developer/Xcode/DerivedData/MYFRAMEWORK-fxtduirfbjhujbdypbycbxrddkjy/Build/Products/Debug-Universal

##################################################################

##################################################################

 🚀 Step 1-1: Building for iphonesimulator

##################################################################

xcodebuild: error: '' is not a workspace file.

##################################################################

 🚀 Step 1-2: Building for iphoneos 

xcodebuild: error: '' is not a workspace file.

##################################################################

 đŸ“Ļ Step 2: Copy the framework structure for iphoneos

##################################################################

cp: /Users/mobilebuildserver/Library/Developer/Xcode/DerivedData/MYFRAMEWORK-fxtduirfbjhujbdypbycbxrddkjy/Build/Products/Debug-iphoneos/MYFRAMEWORK.framework: No such file or directory

##################################################################

 🛠 Step 3: The LIPO Step

##################################################################

fatal error: lipo: can't open input file: /Users/mobilebuildserver/Library/Developer/Xcode/DerivedData/MYFRAMEWORK-fxtduirfbjhujbdypbycbxrddkjy/Build/Products/Debug-iphonesimulator/MYFRAMEWORK.framework/MYFRAMEWORK (No such file or directory)

##################################################################

 đŸ“Ļ Step 4: Copy the Swiftmodules

##################################################################

ℹī¸ Couldn't any Swift module file for SIMULATOR!
ℹī¸ Couldn't any Swift module file for DEVICE!

##################################################################

 🚛 Step 5 Copying in the project directory

##################################################################

cp: /Users/mobilebuildserver/Library/Developer/Xcode/DerivedData/MYFRAMEWORK-fxtduirfbjhujbdypbycbxrddkjy/Build/Products/Debug-Universal/MYFRAMEWORK.framework: No such file or directory

##################################################################

##################################################################

##################################################################

 🏁 Completed with Success! 🙂

 🔍 For more details you can always check the /tmp/MYFRAMEWORK_archive.log file. 📝 

##################################################################
gurhub commented 4 years ago
gurhub commented 4 years ago

OK 👍đŸģ

gurhub commented 4 years ago

Hi, @AaoIi your project unable to build on the terminal as the error shows.

If your project is unable to build via xcodebuild command for some reason, this script will not help you, and you'll get a build error. First, be sure that your project can build on the terminal and try this project.

Please first build from the terminal and then try again. This is a requirement for this script. This is common after installing the new Xcode version.

Check the step line below:

Step 1-1: Building for iphonesimulator

xcodebuild: error: '' is not a workspace file.