Error msg when starting REPL

Anyone else getting the below error message when starting the REPL:

$ swift
error: libarclite_macosx.a(arclite.o) failed to load
objfile for /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_macosx.a
Welcome to Apple Swift version 2.0 (700.1.100.2 700.1.74). Type :help for assistance.
  1>

?

OS X 10.10.5, Xcode 7.1 beta


Also, I have this 7.1 beta installed in /Applications/Xcode71b1.app/ and another older (GM) installed in /Applications/Xcode.app/ so it seems strange that it is trying to load something from /Applications/Xcode.app/

This kind of setup (renaming the Xcode.app before moving it to /Applications/) has never caused any troubles before.

(I did this before starting the REPL:

$ sudo xcode-select -s /Applications/Xcode71b1.app

)


EDIT: As noted below. Things have gotten even worse with Xcode 7.1 beta 2. It reports the same error message even though it is installed without renaming it. Ie it tries to load arclite.o from /Applications/Xcode.app/... despite the fact that Apple has packaged it as Xcode-beta.app.

Filed a separate bug report 22830959 for this issue.

I just verified that this error message goes away when Xcode 7.1 beta is installed in /Applications/Xcode.app/ rather than /Applications/Xcode71b1.app/ ... This is somewhat surprising since I remember reading somewhere on this forum (or the old forum) that renaming Xcodes should be ok.


But even though this makes the error message go away, there's still a problem with auto completion being messed up for some functions (I wrote a separate question about this some days ago). This happens in Xcode projects, Playgrounds (iOS and OS X) and in the REPL. Here is how it looks when listing the completions for arc4random_... for example:


Welcome to Apple Swift version 2.0 (700.1.100.2 700.1.74). Type :help for assistance.
  1> import Foundation
  2> arc4random_
Available completions:
  arc4random_addrandom(UnsafeMutablePointer<UInt8>, Int32) -> Void
  arc4random_addrandom(UnsafeMutablePointer<UInt8>, Int32) -> Void
  arc4random_buf(UnsafeMutablePointer<Void>, Int) -> Void
  arc4random_buf(UnsafeMutablePointer<Void>, Int) -> Void
  arc4random_stir() -> Void
  arc4random_stir() -> Void


Note that every entry is duplicated, and that these two are missing:

arc4random()

arc4random_uniform(UInt32)


The same thing happens in Xcode projects and in Playogrunds. Also note that while the completions doesn't include the above two functions, I can write them (letter by letter) and they will compile and run fine, so it's just that they are absent from the completions list for some reason.

This is somewhat surprising since I remember reading somewhere on this forum (or the old forum) that renaming Xcodes should be ok.

Indeed it should. Failures like this are always bugworthy IMO.

The Xcode 7.1 beta Release Notes specifically call out a known gotcha with renaming Xcode, but it seems unlikely that your problem is related to that one. Just to be sure, I recommend you file a bug about your problem. Please post your bug number, just for the record.

Share and Enjoy

Quinn "The Eskimo!"
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

22732882

Do you know if the latest Xcode 7.1 beta 2 can be renamed safely or not?

Installed as /Applications/Xcode7.1-beta2.app and got this:

error: libarclite_macosx.a(arclite.o) failed to load objfile for /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_macosx.a
Welcome to Apple Swift version 2.1 (700.1.100.4 700.1.75). Type :help for assistance.
  1>

Ah, good to know, I won't rename it then ... which makes it impossible to have more than one beta installed I guess. : /

Swift 2.1 is a big change and it generates more Seg fault: 11, than the former beta, maybe some threads will be opened later...

So the download finished and I installed Xcode 7.1 beta 2 without renaming it, and guess what:

$ sudo xcode-select -s /Applications/Xcode-beta.app
Password:
$ swift
error: libarclite_macosx.a(arclite.o) failed to load objfile for /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_macosx.a
Welcome to Apple Swift version 2.1 (700.1.100.4 700.1.75). Type :help for assistance.
  1>


What is this supposed to mean?

Does it have to be named Xcode.app even though it is packaged by Apple as Xcode-beta.app?

I guess everyone will get this error message when starting the REPL.


Makes one wonder what other existing things this beta is erroneously loading from /Applications/Xcode.app/ instead of /Applications/Xcode-beta.app/ ...

I realize this is an old thread. However - I am unclear about the precise method any of you are using to Rename an Xcode project.


I have found this decription of the process in the Apple documentation to be very helpful.

It does allow Xcode 7.0.1 and up to be doing the "heavy lifting".

I am running Xcode 7.0.1 (7A1001) released version on OS X 10.10.5.

Here is the link to the Apple recommended method for Renaming and Xcode project.


xcdoc://?url=developer.apple.com/library/etc/redirect/xcode/devtools/34586/recipes/xcode_help-project_editor/RenamingaProject/RenamingaProject.html


Does this help you?

Cheers

Error msg when starting REPL
 
 
Q