iOS Linking Issues for iOS6 and Armv7 - ios

I've recently opened my previously working apps (before i upgraded to the new Xcode for iOS6) and i'm getting some errors. I've redownloaded the frameworks that were kicking back the errors but those same frameworks now seem to be giving me more trouble. Below is the error...
Ld /Users/JohnSlater/Library/Developer/Xcode/DerivedData/iFestApp-avmgjnvetjnjecdjprczkbgdkfas/Build/Intermediates/iFestApp.build/Debug-iphoneos/iFestApp.build/Objects-normal/armv7/iFestApp normal armv7
cd "/Users/JohnSlater/Desktop/iOS Apps/iFestival for V 2012"
setenv IPHONEOS_DEPLOYMENT_TARGET 5.0
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk -L/Users/JohnSlater/Library/Developer/Xcode/DerivedData/iFestApp-avmgjnvetjnjecdjprczkbgdkfas/Build/Products/Debug-iphoneos "-L/Users/JohnSlater/Desktop/iOS Apps/iFestival for V 2012/iFestApp/Resources/Frameworks/Airship" -F/Users/JohnSlater/Library/Developer/Xcode/DerivedData/iFestApp-avmgjnvetjnjecdjprczkbgdkfas/Build/Products/Debug-iphoneos -filelist /Users/JohnSlater/Library/Developer/Xcode/DerivedData/iFestApp-avmgjnvetjnjecdjprczkbgdkfas/Build/Intermediates/iFestApp.build/Debug-iphoneos/iFestApp.build/Objects-normal/armv7/iFestApp.LinkFileList -dead_strip -fobjc-link-runtime -miphoneos-version-min=5.0 -framework QuartzCore -framework Security -framework AudioToolbox -framework MessageUI -framework StoreKit -framework CoreTelephony -lsqlite3 -framework AVFoundation -lz -framework MobileCoreServices -framework SystemConfiguration -framework CFNetwork -framework CoreLocation -framework MapKit -framework UIKit -framework Foundation -framework CoreGraphics -lUAirship-1.3.3 -lUAirshipPush-1.3.3 -o /Users/JohnSlater/Library/Developer/Xcode/DerivedData/iFestApp-avmgjnvetjnjecdjprczkbgdkfas/Build/Intermediates/iFestApp.build/Debug-iphoneos/iFestApp.build/Objects-normal/armv7/iFestApp
Undefined symbols for architecture armv7:
"_OBJC_CLASS_$_TestFlight", referenced from:
objc-class-ref in AppDelegate.o
"_OBJC_CLASS_$_FlurryAnalytics", referenced from:
objc-class-ref in AppDelegate.o
objc-class-ref in ViewController.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Can anyone give me some guidance as i've been unable to find a straight answer.
Thanks.

If you want to support iPhone 5 configurations you have to reconfigure the whole project and make it run with armv7s architecture.
If you just want to get rid of the errors you should remove all the armv7s references, including all libs.
This may help a little: Moving to iOS6 I get this linker error with almost all external packages

Related

Nuance Vocalizer demo application fails to build for 64-bit simulator devices

Trying to build the demo app contained in the DragonMobileSDK_1.4.9 download, I get 62 undefined symbols referenced from libSpeechKit.a-x86_64-master.o, all prefixed with _nmsp_vector_. Using Xcode 5.1.
The app compiles okay for the non-64-bit simulator devices. When I searched for answers I saw similar posts but they were problems in user apps, resolved by linking against the same libraries as the demo app. In this case it's the demo app itself that fails.
The build output looks like this:
Ld /Users/user13/Library/Developer/Xcode/DerivedData/DMVocalizer-gighyiitifpefcfcyeoylguzztkm/Build/ Products/Debug-iphonesimulator/Vocalizer.app/Vocalizer normal x86_64
cd /Users/user13/Developer/DragonMobileSDK_1.4.9/DragonMobileVocalizer
export IPHONEOS_DEPLOYMENT_TARGET=7.1
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk -L/Users/user13/Library/Developer/Xcode/DerivedData/DMVocalizer-gighyiitifpefcfcyeoylguzztkm/Build/Products/Debug-iphonesimulator -F/Users/user13/Library/Developer/Xcode/DerivedData/DMVocalizer-gighyiitifpefcfcyeoylguzztkm/Build/Products/Debug-iphonesimulator -F/Users/user13/Developer/DragonMobileSDK_1.4.9/DragonMobileVocalizer -filelist /Users/user13/Library/Developer/Xcode/DerivedData/DMVocalizer-gighyiitifpefcfcyeoylguzztkm/Build/Intermediates/DMVocalizer.build/Debug-iphonesimulator/DMVocalizer.build/Objects-normal/x86_64/Vocalizer.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=7.1 -framework SpeechKit -framework Foundation -framework UIKit -framework CoreGraphics -framework AudioToolbox -framework SystemConfiguration -framework AVFoundation -framework CFNetwork -framework Security -Xlinker -dependency_info -Xlinker /Users/user13/Library/Developer/Xcode/DerivedData/DMVocalizer-gighyiitifpefcfcyeoylguzztkm/Build/Intermediates/DMVocalizer.build/Debug-iphonesimulator/DMVocalizer.build/Objects-normal/x86_64/Vocalizer_dependency_info.dat -o /Users/user13/Library/Developer/Xcode/DerivedData/DMVocalizer-gighyiitifpefcfcyeoylguzztkm/Build/Products/Debug-iphonesimulator/Vocalizer.app/Vocalizer
Undefined symbols for architecture x86_64:
"_nmsp_audio_player_create", referenced from:
l093 in SpeechKit(libSpeechKit.a-x86_64-master.o)
"_nmsp_audio_player_delete", referenced from:
l017 in SpeechKit(libSpeechKit.a-x86_64-master.o)
"_nmsp_audio_player_getAudioSink", referenced from:
l027 in SpeechKit(libSpeechKit.a-x86_64-master.o
…
l069 in SpeechKit(libSpeechKit.a-x86_64-master.o)
l112 in SpeechKit(libSpeechKit.a-x86_64-master.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
You have to left only: armv7 armv7s i386 architectures for your project/demo in Architectures and Valid Architectures manually.

OpenCV Linker Error

I've done a lot of searching around so far on this problem, but no proposed solution has worked for me. When running my program, I need to be able to load in a video file to an opencv VideoCapture object so that I can then display it frame by frame. The line
vidCap = cv::VideoCapture::VideoCapture(FILENAME);
causes 4 linker errors:
Undefined symbols for architecture i386:
"cv::VideoCapture::VideoCapture(cv::String const&)", referenced from:
-[ViewController viewDidLoad] in ViewController.o
"cv::String::deallocate()", referenced from:
cv::String::~String() in ViewController.o
"cv::String::allocate(unsigned long)", referenced from:
cv::String::String(char const*) in ViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
and nothing has worked for me so far to fix this. When I change the C++ compiler from libc++ to libstdc++ then I get a "lexical or preprocessor issue: 'cstdint' file not found"
Can anyone offer me assistance on this?
Edit:
Ld /Users/max/Library/Developer/Xcode/DerivedData/ChickenTracker-frcayvqpvtapigflaqrveexxtkud/Build/Products/Debug-iphonesimulator/ChickenTracker.app/ChickenTracker normal i386
cd /Users/max/Documents/ChickenTracker
setenv IPHONEOS_DEPLOYMENT_TARGET 7.0
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk -L/Users/max/Library/Developer/Xcode/DerivedData/ChickenTracker-frcayvqpvtapigflaqrveexxtkud/Build/Products/Debug-iphonesimulator -L/Users/max/Documents/ChickenTracker -L/Users/max/Downloads/ios/build/iPhoneSimulator-x86_64/modules/highgui/UninstalledProducts -L/Users/max/Documents/opencv-2.4.7/build/lib -F/Users/max/Library/Developer/Xcode/DerivedData/ChickenTracker-frcayvqpvtapigflaqrveexxtkud/Build/Products/Debug-iphonesimulator -F/Users/max/Downloads/ios -F/Users/max/Documents/ChickenTracker -filelist /Users/max/Library/Developer/Xcode/DerivedData/ChickenTracker-frcayvqpvtapigflaqrveexxtkud/Build/Intermediates/ChickenTracker.build/Debug-iphonesimulator/ChickenTracker.build/Objects-normal/i386/ChickenTracker.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -stdlib=libc++ -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=7.0 -lc++ -framework opencv2 -framework Accelerate -framework CoreImage -framework QuartzCore -framework AssetsLibrary -framework ImageIO -framework CoreMedia -framework CoreVideo -framework AVFoundation -framework CoreGraphics -framework UIKit -framework Foundation -Xlinker -dependency_info -Xlinker /Users/max/Library/Developer/Xcode/DerivedData/ChickenTracker-frcayvqpvtapigflaqrveexxtkud/Build/Intermediates/ChickenTracker.build/Debug-iphonesimulator/ChickenTracker.build/Objects-normal/i386/ChickenTracker_dependency_info.dat -o /Users/max/Library/Developer/Xcode/DerivedData/ChickenTracker-frcayvqpvtapigflaqrveexxtkud/Build/Products/Debug-iphonesimulator/ChickenTracker.app/ChickenTracker

Mach-O Linker Error Xcode 5

I have just updated my Xcode to version 5.0.2
And after updating, all my previously running apps (*perfectly running and archiving) are now giving following errors when I try to archive them for testing on my devices (not connected devices).
Ld /Users/dharammalik/Library/Developer/Xcode/DerivedData/lite_test-hblolzuqyvugvdfpenjeoxvmovrk/Build/Intermediates/ArchiveIntermediates/lite_test/IntermediateBuildFilesPath/lite_test.build/Release-iphoneos/lite_test.build/Objects-normal/armv7s/lite_test normal armv7s
cd /Users/dharammalik/Documents/PhonegapWorkspace/lite_test
setenv IPHONEOS_DEPLOYMENT_TARGET 5.0
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch armv7s -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk -L/Users/dharammalik/Library/Developer/Xcode/DerivedData/lite_test-hblolzuqyvugvdfpenjeoxvmovrk/Build/Intermediates/ArchiveIntermediates/lite_test/BuildProductsPath/Release-iphoneos -F/Users/dharammalik/Library/Developer/Xcode/DerivedData/lite_test-hblolzuqyvugvdfpenjeoxvmovrk/Build/Intermediates/ArchiveIntermediates/lite_test/BuildProductsPath/Release-iphoneos -filelist /Users/dharammalik/Library/Developer/Xcode/DerivedData/lite_test-hblolzuqyvugvdfpenjeoxvmovrk/Build/Intermediates/ArchiveIntermediates/lite_test/IntermediateBuildFilesPath/lite_test.build/Release-iphoneos/lite_test.build/Objects-normal/armv7s/lite_test.LinkFileList -dead_strip -weak_framework CoreFoundation -weak_framework UIKit -weak_framework AVFoundation -weak_framework CoreMedia -weak-lSystem -all_load -Obj-C -fobjc-link-runtime -miphoneos-version-min=5.0 -framework CoreLocation -framework ImageIO -framework OpenAL -framework AssetsLibrary /Users/dharammalik/Library/Developer/Xcode/DerivedData/lite_test-hblolzuqyvugvdfpenjeoxvmovrk/Build/Intermediates/ArchiveIntermediates/lite_test/BuildProductsPath/Release-iphoneos/libCordova.a -framework Foundation -weak_framework UIKit -framework CoreGraphics -framework AddressBook -framework AddressBookUI -framework AudioToolbox -weak_framework AVFoundation -framework CFNetwork -framework MediaPlayer -framework QuartzCore -framework SystemConfiguration -framework MobileCoreServices -weak_framework CoreMedia -framework CoreLocation -Xlinker -dependency_info -Xlinker /Users/dharammalik/Library/Developer/Xcode/DerivedData/lite_test-hblolzuqyvugvdfpenjeoxvmovrk/Build/Intermediates/ArchiveIntermediates/lite_test/IntermediateBuildFilesPath/lite_test.build/Release-iphoneos/lite_test.build/Objects-normal/armv7s/lite_test_dependency_info.dat -o /Users/dharammalik/Library/Developer/Xcode/DerivedData/lite_test-hblolzuqyvugvdfpenjeoxvmovrk/Build/Intermediates/ArchiveIntermediates/lite_test/IntermediateBuildFilesPath/lite_test.build/Release-iphoneos/lite_test.build/Objects-normal/armv7s/lite_test
ld: warning: ignoring file /Users/dharammalik/Library/Developer/Xcode/DerivedData/lite_test-hblolzuqyvugvdfpenjeoxvmovrk/Build/Intermediates/ArchiveIntermediates/lite_test/BuildProductsPath/Release-iphoneos/libCordova.a, file was built for archive which is not the architecture being linked (armv7s): /Users/dharammalik/Library/Developer/Xcode/DerivedData/lite_test-hblolzuqyvugvdfpenjeoxvmovrk/Build/Intermediates/ArchiveIntermediates/lite_test/BuildProductsPath/Release-iphoneos/libCordova.a
Undefined symbols for architecture armv7s:
"_OBJC_METACLASS_$_CDVCommandDelegateImpl", referenced from:
_OBJC_METACLASS_$_MainCommandDelegate in MainViewController.o
"_CDVLocalNotification", referenced from:
-[AppDelegate application:didReceiveLocalNotification:] in AppDelegate.o
"_OBJC_CLASS_$_CDVCommandDelegateImpl", referenced from:
_OBJC_CLASS_$_MainCommandDelegate in MainViewController.o
"_OBJC_CLASS_$_CDVCommandQueue", referenced from:
_OBJC_CLASS_$_MainCommandQueue in MainViewController.o
"_OBJC_METACLASS_$_CDVViewController", referenced from:
_OBJC_METACLASS_$_MainViewController in MainViewController.o
"_OBJC_METACLASS_$_CDVCommandQueue", referenced from:
_OBJC_METACLASS_$_MainCommandQueue in MainViewController.o
"_CDVPluginHandleOpenURLNotification", referenced from:
-[AppDelegate application:handleOpenURL:] in AppDelegate.o
"_OBJC_CLASS_$_CDVViewController", referenced from:
_OBJC_CLASS_$_MainViewController in MainViewController.o
ld: symbol(s) not found for architecture armv7s
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Tried changing the Architectures, but nothing worked. Any idea how to resolve these issues? They were not there at all in the previous version of Xcode I had.
Remove armv7s from valid architectures section and it will work.
Build Settings --> Architectures --> Valid Architectures
Change the Buid setting ---> Architecture ---> Build Active Architecture only ---> Yes
This solved my issue for using old cordova versions in new Xcode 5
I had the same problem and the issue was that I have accidently imported a .m file instead of .h in an implementation file - hope it helps
libCordova.a, file was built for archive which is not the architecture being linked (armv7s)
Looks like your copy of libCordova framework does not contain a armv7s binary.
You need to change the Architectures in the CordovaLib project, not in your lite_test project. I assume when you said you tried changing the Architectures, you only tried in your project and not the Cordova project (since changing in Cordova worked for me) . Remember that Cordova is a dependent project and is compiled into the binary each time you run.

Linker Error When Integrating iOS and the Google Plus SDK

I'm trying to use the Google Plus SDK for sharing in an iOS 6.1 app and get a linker error after adding the GooglePlus.framework and the GoogleOpenSource.framework.
Merely including the frameworks and building yields the following errors:
Undefined symbols for architecture armv7:
"_CGRectDivide", referenced from:
-[GTMOAuth2ViewControllerTouch moveWebViewFromUnderNavigationBar] in GTMOAuth2ViewControllerTouch.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I've followed instructions found in the Google guide to no avail.
I've done the following:
Included SystemConfiguration.framework and Security.framework
Dragged and dropped the GooglePlus.framework and the GoogleOpenSource.framework
from the SDK into my XCode project
Added the -ObjC flag to the app target's build settings
In addition to the previous steps I also tried adding the contents of the OpenSource folder provided in the SDK but that had no effect caused additional problems after the initial fix.
Libraries:
Full error message:
Ld "/Users/me/Library/Developer/Xcode/DerivedData/MyApp-asdf/Build/Intermediates/MyApp.build/
Debug-iphoneos/MyAoo.build/Objects-normal/armv7/MyApp" normal armv7
cd /Users/me/code/MyApp
setenv IPHONEOS_DEPLOYMENT_TARGET 6.1
setenv PATH
"/Applications/Xcode.app/Contents/Developer/Platforms/
iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/
Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/
XcodeDefault.xctoolchain/usr/bin/clang -arch armv7 -isysroot
/Applications/Xcode.app/Contents/Developer/
Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk
-L/Users/me/Library/Developer/Xcode/DerivedData/
MyApp-asdf/Build/Products/Debug-iphoneos
-L/Users/me/code/MyApp/MyApp
-F/Users/me/Library/Developer/Xcode/DerivedData/MyApp-asdf/Build/Products/Debug-iphoneos
-F/Users/me/code/MyApp/../../Documents/FacebookSDK -F/Users/me/code/MyApp
-F/Users/me/code/MyApp/MyApp
-filelist "/Users/me/Library/Developer/Xcode/
DerivedData/MyApp-asdf/Build/Intermediates/
MyApp.build/Debug-iphoneos/MyApp.build/Objects-normal/armv7/MyApp.LinkFileList"
-dead_strip -ObjC -lsqlite3.0 -fobjc-arc
-fobjc-link-runtime -miphoneos-version-min=6.1
-framework SystemConfiguration -framework Security
-framework CFNetwork -framework Social -framework Accounts
-framework EventKit -framework EventKitUI
-framework AVFoundation -framework MapKit
-framework Twitter -framework CoreMotion -framework CoreLocation
-lxml2 -framework QuartzCore
-framework MobileCoreServices -framework CoreData
-framework UIKit -framework Foundation
-framework Pinterest -framework GooglePlus
-framework GoogleOpenSource
-lGooglePlusUniversal -o
"/Users/me/Library/Developer/
Xcode/DerivedData/MyApp-asdf/Build/Intermediates/MyApp.build/
Debug-iphoneos/MyApp.build/Objects-normal/armv7/MyApp"
Undefined symbols for architecture armv7:
"_CGRectDivide", referenced from:
-[GTMOAuth2ViewControllerTouch moveWebViewFromUnderNavigationBar] in
GTMOAuth2ViewControllerTouch.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I'm not sure what I missed but any help would be greatly appreciated.
Also link in the CoreGraphics framework. It's looking for the CGRectDivide method, which is part of CoreGraphics.
This error is caused by adding OpenSource folder to you project, xcode detects that there is a duplication of files. So you should only add GooglePlus.framework and the GoogleOpenSource.framework.

Xcode: symbol(s) not found for architecture armv7

I have this message from Xcode
Ld /Users/myUsername/Library/Developer/Xcode/DerivedData/myApp-gqsubryokdmrjmczxeqypzcgpths/Build/Intermediates/myApp.build/Debug-iphoneos/myApp.build/Objects-normal/armv7/myApp normal armv7
cd /Users/myUsername/Documents/_IPAD/myApp
setenv IPHONEOS_DEPLOYMENT_TARGET 4.3
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk -L/Users/myUsername/Library/Developer/Xcode/DerivedData/myApp-gqsubryokdmrjmczxeqypzcgpths/Build/Products/Debug-iphoneos -F/Users/myUsername/Library/Developer/Xcode/DerivedData/myApp-gqsubryokdmrjmczxeqypzcgpths/Build/Products/Debug-iphoneos -filelist /Users/myUsername/Library/Developer/Xcode/DerivedData/myApp-gqsubryokdmrjmczxeqypzcgpths/Build/Intermediates/myApp.build/Debug-iphoneos/myApp.build/Objects-normal/armv7/myApp.LinkFileList -dead_strip -fobjc-arc -fobjc-link-runtime -miphoneos-version-min=4.3 -framework AudioToolbox -framework SystemConfiguration -framework QuartzCore -framework OpenAL -framework CoreGraphics -framework CFNetwork -framework MessageUI -framework CoreData -framework AVFoundation -framework StoreKit -framework UIKit -framework Foundation -o /Users/myUsername/Library/Developer/Xcode/DerivedData/myApp-gqsubryokdmrjmczxeqypzcgpths/Build/Intermediates/myApp.build/Debug-iphoneos/myApp.build/Objects-normal/armv7/myApp
Undefined symbols for architecture armv7:
"_OBJC_CLASS_$_ViewController", referenced from:
objc-class-ref in AppDelegate.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
What exactly is not found? If it is saying that something was not found where is this not found stuff being looked for? Or in other words, if xcode is searching for something it is searching somewhere, where and what?
The ViewController object is not found and it was referenced within AppDelegate. You do not link ViewController into your app. Check if your Compile Sources section within the Build Phases of your project shows ViewController.m.
I just ran into this. Turns out I didn't add the new source to all of the targets that needed it. Maybe this will help someone in the future.. :)
I got same error after updating xCode 6beta to xCode 6.0.1. After spending a lot of time I fixed it by deleting "Derived Data" from Window -> Organizer -> Projects -> #Select project# and pressed Delete in the "Derived Data".

Resources