Swift 2.0 REPL - Error in auto-import - xcode

Currently running on OS X 10.11 Beta 2 with Xcode 7 installed but right now trying to use Swift 2.0 REPL and I'm currently bumping into the following issue:
Welcome to Apple Swift version 2.0 (700.0.42.1 700.0.53). Type :help for assistance.
1> "100".toInt()
Error in auto-import:
failed to get module 'Swift' from AST context
1>
Is there a certain setting or package I need to play around with to get it working?

It seems the error was due to either an issue with the command line tools being installed after Xcode or me removing Xcode 6 as El Capitan Beta 2 only supports Xcode 7 Beta for now.
For now making sure xcode-select points to the right location was the solution I needed.
sudo xcode-select -s /Applications/Xcode-beta.app/Contents/Developer
Mind you all that I only found this error after trying to build with the Ionic Framework as well.
Kudos to tjmehta for his answer to a similar issue.

Related

Flipper React Native Xcode iOS Simulator Version Mismatch

I'm getting the following error about mismatched Xcode versions. However, it doesn't seem to make sense. The UUID is the "Indentifier" of the simulator that is running, not any folder I can switch to. I've found a similar bug, but since it is closed, and old, I don't think I'll get much of a response over there: https://github.com/facebook/flipper/issues/1925#issuecomment-1030495731
I've tried running all the suggested commands with and without sudo and nothing helps. This looks like it might be an Xcode workspace configuration issue since I've not had these problems with other React Native applications.
Xcode version mismatch
Xcode version mismatch: Simulator is running from "286DC512-9354-4D32-A0F3-B354C61BD6B7/Contents/Developer" while Xcode CLI is "/Applications/Xcode.app/Contents/Developer". Running "xcode-select --switch 286DC512-9354-4D32-A0F3-B354C61BD6B7/Contents/Developer" can fix this. For example: "sudo xcode-select -s /Applications/Xcode.app/Contents/Developer"
Xcode version 13.2.1
Flipper version 0.132.0 (50.0.0)
iOS version 15.2
iPhone 11
I've believe that is related with this version 0.132. I've downgrade my version from 0.132 to 0.113 (version that I was using). And everything is working fine.
You can find more releases here https://github.com/facebook/flipper/releases
I'm still looking for a solution to this on version 0.132.
i had the same issue and the error was gone once i upgraded to flipper 0.135.0

Installing Unreal Engine on OSX Mojave

So I'm trying to clone the Unreal Engine from GitHub and setup on OSX Mojave and when running the GenerateProjectFiles.command file as part of the setup, I get the following error:
ERROR: UnrealBuildTool Exception: Invalid SDK MacOSX.sdk, not found in /Library/Developer/CommandLineTools/Platforms/MacOSX.platform/Developer/SDKs
I do have a folder called MacOSX.sdk in a different directory, but when I try to create a symlink to it in the directory that Unreal is searching for, I get this following error instead:
ERROR: UnrealBuildTool Exception: Unable to find installed MacOS SDK on remote agent.
It seems like I'm missing the correct version of the MacOSX.sdk that Unreal needs but I'm not sure what that is. I know you get it when you install XCode, but I have both XCode 10.1 and XCode 9.4 with command line tools installed and still no luck.
What am I missing here?
I have same issue and find a measure for my case.
sudo xcode-select --reset
from here
you need the correct version of xcode with the specific version of unreal.
for unreal engine 4.24 or earlier, you need to install xcode 11 from here:Download xcode 11.for 4.25 or later, use xcode 12 or later if you haven't installed.
if not use sudo xcode-select --reset

Xcode 7 swiftc failed with exit code 1

I've downloaded code from Apple Sample Source Code and try to run on Xcode 7.1 and OS X 10.11.1. I'm getting error as SwiftC failed with exit code 1. I've tried all solutions mentioned on Stackoverflow link but none worked.
Any fix?
Earlier I had three Xcode in my Mac machine viz Xcode 6.4, 7.1 and 7.1.1.
I got the earlier two version of Xcode removed from system. Thereafter I tested Apple 3D touch Sample code on Xcode 7.1.1 and it worked correctly.

Xcode 5.1 crashing after installing Xcode6-beta version

The application "Xcode5.1.1" can't be opened.
I use x-code 5.1 to build iOS apps, now when i installed x-code6 beta version to implement app with swift language then xcode 5.1 is not working. It is giving me such error-
I use to resolve problem with Xcode 4.6.3 crashing after installing xcode 6 beta but not found this useful for my case.
I have tried to restart machine but it is giving same error. I googled for it but not got useful stuff. Any help would be appreciated.
Try to select different "Command line tools" in the bottom of Xcode -> Preferences -> Locations.
You can do it in your working Xcode 6.
After trying more I found it useful
Restart your machine then it can work, if not like my case then try below command in your Terminal
sudo mv /System/Library/PrivateFrameworks/MobileDevice.framework{,-saved}
then again restart your machine then it will ask for installing few components of Xcode so allow it, then your Xcode 5.1.1 will work fine.

MonoMac projects cannot compile: ibtool exited with code 1 - Can't run /Developer/usr/bin/ibtool (no such file)

I'm moving my first steps in MonoMac.
But I stopped right at the beginning due to some configuration error. I've created a new ManoMac project in MonoDevelop, and then tried some other sample MonoMac xamarin projects from GitHub, but I always get this error compiling:
Error: Can't run /Developer/usr/bin/ibtool (no such file).
ibtool exited with code 1
My configuration:
Operating System:
Mac OS X 10.7.3
MonoDevelop 2.8.6.5
Runtime:
Mono 2.10.8 (tarball Mon Dec 19 17:43:18 EST 2011)
GTK 2.24.5
GTK# (2.12.0.0)
Mono for Android not installed
Apple Developer Tools:
Xcode 4.3.1 (1176)
Build 4E1019
Monotouch: 5.2.5
MonoDevelop.MonoMac 2.6.0.0
All my Monotouch projects compile fine, and I have no problem with the last XCode (following the Xamarin guidelines I successfully upgraded XCode and moved it from the obsolete Developer folder to the Application folder, and downloaded the updated developer command line tools from apple).
I've tried reinstalling MonoDevelop, but with no success. I always get: "Error: ibtool returned error code 1."
Any help is appreciated.
This problem is caused by the Xcode 4.3 installer not updating the Xcode symlinks correctly to point to the active Xcode version. You can fix it with the following command:
sudo xcode-select -switch /Applications/Xcode.app
This upcoming MonoDevelop 2.8.8 release contains a fix for this. You can get it from the beta update channel.
It looks like the MonoMac addin was never updated to work with Xcode 4.3.
A temporary workaraound is to setup symlinks in the proper places in /Developer.
I found the way in the MonoMac forum:
http://mono.1490590.n4.nabble.com/MonoMac-and-XCode-4-3-ibtool-error-Solution-td4403822.html
I report it here:
When using MonoMac and Xcode 4.3, the current MD beta build fails with an ibtool error.
The solutions is to type the following commands in the Terminal console:
sudo rm /usr/bin/ibtool
and then:
sudo ln -s /Applications/Xcode.app/Contents/Developer/usr/bin/ibtool /usr/bin/ibtool
Now it compiles fine.
I got a similar error running Xamarin on Xcode 6.2 and I solved the problem by re-installing the same version of Xcode again replacing the old version per the suggestion on this post: xcode-select active developer directory error on OSX Mavericks.
I may have caused this problem as I was renaming XCode Application. I have several versions installed and was trying to keep them all straight.

Resources