Since Xcode 7 and Swift 2.0, I get the error above, like in the screenshot shown here:
I have no idea where this is coming from, cleaning and deleting derived data didn't work.
Anyone else experiencing this problem?
Project settings:
Target settings:
I resolved this problem with these steps:
ran 'pod deintegrate'
Makesure podfile like this: platform :ios, '8.0' use_frameworks!
ran 'pod install'
I fixed it by going to Xcode -> Preferences -> Locations -> Set
Relative
option to Derived Data.I got this error too on XCode 7 Beta 5. After I clean the build, then I got another error saying one of my class not conforming to the protocol I just changed. After I fix the issue, it builds. The protocol changes I made is to change two parameter type of a method from
Int
toInt32
In my case,
The compiler would give me the message:
but I realized that I missed a default generic parameter:
changed:
to:
the extension of CanGetClass tried to call getClass on an incomplete type.
I got this error when attempting to run tests. To solve it, I put this script into Terminal:
rm -rf ~/Library/Developer/Xcode/DerivedData
Deleting derived data resolved the issue
I am able to reproduce this simply and consistently with a brand-new project created in Xcode 7.0 beta (7A120f). Note that the problem is likely more broad than the example, but this is 100% reproducible for me by only adding a single line to a new project. This problem also appears to exclusively apply to iOS, not OS X, at least for this example. Have submitted bug report # 21376523 to Apple.
Create a brand-new project in Xcode 7.0 (7A120f). Type is "Game", Language is "Swift", Game Technology is "SceneKit".
Build and run with default settings. Project builds and runs fine in simulator (you will see the default rotating 3D spaceship model).
Add a single SCNVector3 property to GameViewController.swift, like this:
--> Produces "Abort trap: 6". Project will no longer compile.
Change the constant to an empty initializer.
--> Same problem, "Abort trap: 6"
--> "Abort trap: 6" is gone, project again compiles and runs.
Change "var" to "let".
-- > Compiles and runs.
Change property type to SCNVector4 instead of SCNVector3.
-- > Compiles and runs.
EDIT: This problem is fixed in Xcode 7.0 beta-2 (7A121l), if you are getting "Abort trap: 6" due to using a float 3 vector type (such as SCNVector3). From the release notes: