Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xcode 11.5 and 11.4 issue #2

Closed
AaoIi opened this issue Jun 25, 2020 · 3 comments
Closed

Xcode 11.5 and 11.4 issue #2

AaoIi opened this issue Jun 25, 2020 · 3 comments

Comments

@AaoIi
Copy link

AaoIi commented Jun 25, 2020

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
Copy link
Owner

gurhub commented Jun 25, 2020

  • @AaoIi can you give more details, please :)
  • Also, did you ever use it before the Xcode 11.5 version and works for you?

@gurhub
Copy link
Owner

gurhub commented Jun 26, 2020

OK 👍🏻

@AaoIi AaoIi changed the title Xcode 11.5 issue Xcode 11.5 and 11.4 issue Jun 28, 2020
@gurhub
Copy link
Owner

gurhub commented Jul 1, 2020

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.

@gurhub gurhub closed this as completed Jul 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants