Google Cast Cocoapods in Xcode - xcode

Trying to use Google Cast 3.2.0 (via cocoapods) in my Swift project in Xcode, and I get an error when trying to run it in the simulator.
Ld /Users/nicholas/Library/Developer/Xcode/DerivedData/Bingo_Board-fqbocunomtcrqobsvzslsuigorec/Build/Products/Debug-iphonesimulator/Bingo\ Board.app/Bingo\ Board normal x86_64
cd /Users/nicholas/OneDrive/Apps/iOS/Bingo2
export IPHONEOS_DEPLOYMENT_TARGET=8.0
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/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/iPhoneSimulator10.1.sdk -L/Users/nicholas/Library/Developer/Xcode/DerivedData/Bingo_Board-fqbocunomtcrqobsvzslsuigorec/Build/Products/Debug-iphonesimulator -F/Users/nicholas/Library/Developer/Xcode/DerivedData/Bingo_Board-fqbocunomtcrqobsvzslsuigorec/Build/Products/Debug-iphonesimulator -F\ \"/Users/nicholas/OneDrive/Apps/iOS/Bingo2/Pods/google-cast-sdk/GoogleCastSDK-Public-3.2.0-Release\" -filelist /Users/nicholas/Library/Developer/Xcode/DerivedData/Bingo_Board-fqbocunomtcrqobsvzslsuigorec/Build/Intermediates/Bingo\ Board.build/Debug-iphonesimulator/Bingo\ Board.build/Objects-normal/x86_64/Bingo\ Board.LinkFileList -Xlinker -rpath -Xlinker #executable_path/Frameworks -mios-simulator-version-min=8.0 -Xlinker -object_path_lto -Xlinker /Users/nicholas/Library/Developer/Xcode/DerivedData/Bingo_Board-fqbocunomtcrqobsvzslsuigorec/Build/Intermediates/Bingo\ Board.build/Debug-iphonesimulator/Bingo\ Board.build/Objects-normal/x86_64/Bingo\ Board_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fobjc-link-runtime -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator -Xlinker -add_ast_path -Xlinker /Users/nicholas/Library/Developer/Xcode/DerivedData/Bingo_Board-fqbocunomtcrqobsvzslsuigorec/Build/Intermediates/Bingo\ Board.build/Debug-iphonesimulator/Bingo\ Board.build/Objects-normal/x86_64/Bingo_Board.swiftmodule -ObjC -lc++ -framework AVFoundation -framework Accelerate -framework AudioToolbox -framework CFNetwork -framework CoreBluetooth -framework CoreGraphics -framework CoreMedia -framework CoreText -framework Foundation -framework GoogleCast -framework MediaPlayer -framework QuartzCore -framework Security -framework SystemConfiguration -framework UIKit -ObjC -framework CoreText -framework MediaAccessibility -framework SystemConfiguration -framework GoogleCast -framework StoreKit -lPods-Bingo\ Board -Xlinker -dependency_info -Xlinker /Users/nicholas/Library/Developer/Xcode/DerivedData/Bingo_Board-fqbocunomtcrqobsvzslsuigorec/Build/Intermediates/Bingo\ Board.build/Debug-iphonesimulator/Bingo\ Board.build/Objects-normal/x86_64/Bingo\ Board_dependency_info.dat -o /Users/nicholas/Library/Developer/Xcode/DerivedData/Bingo_Board-fqbocunomtcrqobsvzslsuigorec/Build/Products/Debug-iphonesimulator/Bingo\ Board.app/Bingo\ Board
ld: warning: directory not found for option '-F "/Users/nicholas/OneDrive/Apps/iOS/Bingo2/Pods/google-cast-sdk/GoogleCastSDK-Public-3.2.0-Release"'
ld: framework not found GoogleCast
clang: error: linker command failed with exit code 1 (use -v to see invocation)

You need to "pod repo update" then "pod install". If that doesn't work then you need to delete your pod.lock file and start all over with "pod init".

Related

Xcode build can´t find file in derived data folder

I have a react-native app, which i wanted to start on ios. But the build-process in xCode fails with the following error:
file not found: /Volumes/Disk/XCode/Derived_Data/App-hksageyxjqizoydwjhxhihcbnxxv/Build/Products/Debug-iphonesimulator/App.app/App
It´s my first time building an App with xCode. I think this derived data is created by xCode, isn´t it? So how it can happen, that xCode is looking for something there what is missing?
Unfortunately i don´t have any idea, how to get closer to a solution.
Thanks in advance, for some help.
EDIT:
After cleaning, and rebuild, the same error appears:
Ld
/Volumes/DISK/XCode/Derived_Data/APP-hksageyxjqizoydwjhxhihcbnxxv/Build/Products/Debug-iphonesimulator/APP.app/PlugIns/APPTests.xctest/APPTests
normal (in target 'APPTests' from project 'APP')
cd /Volumes/DISK/Projekte/COMPANY/PROJECT/ios
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
-target x86_64-apple-ios12.0-simulator -bundle -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk
-L/Volumes/DISK/XCode/Derived_Data/APP-hksageyxjqizoydwjhxhihcbnxxv/Build/Products/Debug-iphonesimulator
-L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/lib
-F/Volumes/DISK/XCode/Derived_Data/APP-hksageyxjqizoydwjhxhihcbnxxv/Build/Products/Debug-iphonesimulator
-F/Volumes/DISK/Projekte/COMPANY/PROJECT/ios/Pods/FirebaseAnalytics/Frameworks
-F/Volumes/DISK/Projekte/COMPANY/PROJECT/ios/Pods/Google-Mobile-Ads-SDK/Frameworks/GoogleMobileAdsFramework-Current
-F/Volumes/DISK/Projekte/COMPANY/PROJECT/ios/Pods/GoogleAppMeasurement/Frameworks
-F/Volumes/DISK/Projekte/COMPANY/PROJECT/ios/Pods/GoogleMaps/Base/Frameworks
-F/Volumes/DISK/Projekte/COMPANY/PROJECT/ios/Pods/GoogleMaps/Maps/Frameworks
-F/Volumes/DISK/Projekte/COMPANY/PROJECT/ios/Pods/GoogleSignIn/Frameworks
-F/Volumes/DISK/Projekte/COMPANY/PROJECT/ios/Pods/GoogleUserMessagingPlatform/Frameworks/Release
-F/Volumes/DISK/XCode/Derived_Data/APP-hksageyxjqizoydwjhxhihcbnxxv/Build/Products/Debug-iphonesimulator/XCFrameworkIntermediates/UserMessagingPlatform
-iframework /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Frameworks
-iframework /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/Developer/Library/Frameworks
-filelist /Volumes/DISK/XCode/Derived_Data/APP-hksageyxjqizoydwjhxhihcbnxxv/Build/Intermediates.noindex/APP.build/Debug-iphonesimulator/APPTests.build/Objects-normal/x86_64/APPTests.LinkFileList
-Xlinker -rpath -Xlinker #executable_path/Frameworks -Xlinker -rpath -Xlinker #loader_path/Frameworks -dead_strip -bundle_loader /Volumes/DISK/XCode/Derived_Data/APP-hksageyxjqizoydwjhxhihcbnxxv/Build/Products/Debug-iphonesimulator/APP.app/APP
-Xlinker -object_path_lto -Xlinker /Volumes/DISK/XCode/Derived_Data/APP-hksageyxjqizoydwjhxhihcbnxxv/Build/Intermediates.noindex/APP.build/Debug-iphonesimulator/APPTests.build/Objects-normal/x86_64/APPTests_lto.o
-Xlinker -export_dynamic -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -ObjC -lc++ -lc++ -licucore -lsqlite3 -lstdc++ -lz -framework AVFoundation -framework Accelerate -framework AudioToolbox -framework CFNetwork -framework CoreData -framework CoreGraphics -framework CoreImage -framework CoreLocation -framework CoreMedia -framework CoreTelephony -framework CoreText -framework CoreVideo -framework Foundation -framework GLKit -framework ImageIO -framework JavaScriptCore -framework LocalAuthentication -framework MediaPlayer -framework MessageUI -framework MobileCoreServices -framework OpenGLES -framework
QuartzCore -framework SafariServices -framework Security -framework
StoreKit -framework SystemConfiguration -framework UIKit -framework
WebKit -framework XCTest -Xlinker -sectcreate -Xlinker __TEXT -Xlinker
__entitlements -Xlinker /Volumes/DISK/XCode/Derived_Data/APP-hksageyxjqizoydwjhxhihcbnxxv/Build/Intermediates.noindex/APP.build/Debug-iphonesimulator/APPTests.build/APPTests.xctest-Simulated.xcent
-lPods-APPTests -Xlinker -no_adhoc_codesign -Xlinker -dependency_info -Xlinker /Volumes/DISK/XCode/Derived_Data/APP-hksageyxjqizoydwjhxhihcbnxxv/Build/Intermediates.noindex/APP.build/Debug-iphonesimulator/APPTests.build/Objects-normal/x86_64/APPTests_dependency_info.dat
-o /Volumes/DISK/XCode/Derived_Data/APP-hksageyxjqizoydwjhxhihcbnxxv/Build/Products/Debug-iphonesimulator/APP.app/PlugIns/APPTests.xctest/APPTests
ld: file not found:
/Volumes/DISK/XCode/Derived_Data/APP-hksageyxjqizoydwjhxhihcbnxxv/Build/Products/Debug-iphonesimulator/APP.app/APP
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
Unfortunately i can´t share the repository, because it´s not my own app, i'am just trying to help someone.

xcode clang: error: no such file or directory: 'Lockbox'

i try to compile xcode project and i face this error
clang: error: no such file or directory: 'Lockbox'
Ld /Users/ahmad/Library/Developer/Xcode/DerivedData/Barqiaty-fubhzmpblqlatcczpgpotdnzmnrt/Build/Products/Debug-iphonesimulator/barqiaty.app/barqiaty normal x86_64 (in target 'Barqiaty' from project 'Barqiaty')
cd /Users/ahmad/Desktop/Barqiaty_iOSApp
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -target x86_64-apple-ios13.5-simulator -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.6.sdk -L/Users/ahmad/Library/Developer/Xcode/DerivedData/Barqiaty-fubhzmpblqlatcczpgpotdnzmnrt/Build/Products/Debug-iphonesimulator -F/Users/ahmad/Library/Developer/Xcode/DerivedData/Barqiaty-fubhzmpblqlatcczpgpotdnzmnrt/Build/Products/Debug-iphonesimulator -F/Users/ahmad/Library/Developer/Xcode/DerivedData/Barqiaty-fubhzmpblqlatcczpgpotdnzmnrt/Build/Products/Debug-iphonesimulator/AFNetworking -F/Users/ahmad/Library/Developer/Xcode/DerivedData/Barqiaty-fubhzmpblqlatcczpgpotdnzmnrt/Build/Products/Debug-iphonesimulator/Alamofire -F/Users/ahmad/Library/Developer/Xcode/DerivedData/Barqiaty-fubhzmpblqlatcczpgpotdnzmnrt/Build/Products/Debug-iphonesimulator/AnimatedCollectionViewLayout -F/Users/ahmad/Library/Developer/Xcode/DerivedData/Barqiaty-fubhzmpblqlatcczpgpotdnzmnrt/Build/Products/Debug-iphonesimulator/BIObjCHelpers -F/Users/ahmad/Library/Developer/Xcode/DerivedData/Barqiaty-fubhzmpblqlatcczpgpotdnzmnrt/Build/Products/Debug-iphonesimulator/Cosmos -F/Users/ahmad/Library/Developer/Xcode/DerivedData/Barqiaty-fubhzmpblqlatcczpgpotdnzmnrt/Build/Products/Debug-iphonesimulator/CountryPickerSwift -F/Users/ahmad/Library/Developer/Xcode/DerivedData/Barqiaty-fubhzmpblqlatcczpgpotdnzmnrt/Build/Products/Debug-iphonesimulator/IQKeyboardManager -F/Users/ahmad/Library/Developer/Xcode/DerivedData/Barqiaty-fubhzmpblqlatcczpgpotdnzmnrt/Build/Products/Debug-iphonesimulator/Lockbox -F/Users/ahmad/Library/Developer/Xcode/DerivedData/Barqiaty-fubhzmpblqlatcczpgpotdnzmnrt/Build/Products/Debug-iphonesimulator/MBProgressHUD -F/Users/ahmad/Library/Developer/Xcode/DerivedData/Barqiaty-fubhzmpblqlatcczpgpotdnzmnrt/Build/Products/Debug-iphonesimulator/Mantle -F/Users/ahmad/Library/Developer/Xcode/DerivedData/Barqiaty-fubhzmpblqlatcczpgpotdnzmnrt/Build/Products/Debug-iphonesimulator/PINCache -F/Users/ahmad/Library/Developer/Xcode/DerivedData/Barqiaty-fubhzmpblqlatcczpgpotdnzmnrt/Build/Products/Debug-iphonesimulator/Reachability -F/Users/ahmad/Library/Developer/Xcode/DerivedData/Barqiaty-fubhzmpblqlatcczpgpotdnzmnrt/Build/Products/Debug-iphonesimulator/SBJson -F/Users/ahmad/Library/Developer/Xcode/DerivedData/Barqiaty-fubhzmpblqlatcczpgpotdnzmnrt/Build/Products/Debug-iphonesimulator/SwiftGifOrigin -F/Users/ahmad/Library/Developer/Xcode/DerivedData/Barqiaty-fubhzmpblqlatcczpgpotdnzmnrt/Build/Products/Debug-iphonesimulator/SwiftyJSON -F/Users/ahmad/Library/Developer/Xcode/DerivedData/Barqiaty-fubhzmpblqlatcczpgpotdnzmnrt/Build/Products/Debug-iphonesimulator/Toast-Swift -F/Users/ahmad/Library/Developer/Xcode/DerivedData/Barqiaty-fubhzmpblqlatcczpgpotdnzmnrt/Build/Products/Debug-iphonesimulator/VBRRollingPit -F/Users/ahmad/Desktop/Barqiaty_iOSApp/Pods/PayCardsRecognizer/Source -F/Users/ahmad/Desktop/Barqiaty_iOSApp/Booking -F/Users/ahmad/Desktop/Barqiaty_iOSApp -filelist /Users/ahmad/Library/Developer/Xcode/DerivedData/Barqiaty-fubhzmpblqlatcczpgpotdnzmnrt/Build/Intermediates.noindex/Barqiaty.build/Debug-iphonesimulator/Barqiaty.build/Objects-normal/x86_64/barqiaty.LinkFileList -Xlinker -rpath -Xlinker #executable_path/Frameworks -Xlinker -rpath -Xlinker #loader_path/Frameworks -Xlinker -rpath -Xlinker #executable_path/Frameworks -dead_strip -Xlinker -object_path_lto -Xlinker /Users/ahmad/Library/Developer/Xcode/DerivedData/Barqiaty-fubhzmpblqlatcczpgpotdnzmnrt/Build/Intermediates.noindex/Barqiaty.build/Debug-iphonesimulator/Barqiaty.build/Objects-normal/x86_64/barqiaty_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator -L/usr/lib/swift -Xlinker -add_ast_path -Xlinker /Users/ahmad/Library/Developer/Xcode/DerivedData/Barqiaty-fubhzmpblqlatcczpgpotdnzmnrt/Build/Intermediates.noindex/Barqiaty.build/Debug-iphonesimulator/Barqiaty.build/Objects-normal/x86_64/barqiaty.swiftmodule -framework AFNetworking -framework Alamofire -framework AnimatedCollectionViewLayout -framework BIObjCHelpers -framework CFNetwork -framework CoreGraphics -framework Cosmos -framework CountryPicker -framework Foundation -framework IQKeyboardManager -framework Lockbox -framework MBProgressHUD -framework Mantle -framework PINCache -framework PayCardsRecognizer -framework QuartzCore -framework Reachability -framework SBJson -framework Security -framework SwiftGifOrigin -framework SwiftyJSON -framework SystemConfiguration -framework Toast_Swift -framework UIKit -framework VBRRollingPit -weak_framework UIKit -framework AFNetworking -framework Alamofire -framework AnimatedCollectionViewLayout -framework BIObjCHelpers -framework CFNetwork -framework CoreGraphics -framework Cosmos -framework CountryPicker -framework Foundation -framework IQKeyboardManager -framework -framework Lockbox -framework MBProgressHUD -framework Mantle -framework PINCache -framework QuartzCore -framework Reachability -framework SBJson -framework Security -framework SwiftGifOrigin -framework SwiftyJSON -framework SystemConfiguration -framework Toast_Swift -framework UIKit -framework VBRRollingPit -weak_framework UIKit -ObjC -all_load -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/ahmad/Library/Developer/Xcode/DerivedData/Barqiaty-fubhzmpblqlatcczpgpotdnzmnrt/Build/Intermediates.noindex/Barqiaty.build/Debug-iphonesimulator/Barqiaty.build/barqiaty.app-Simulated.xcent -framework paytabs-iOS -framework Pods_Barqiaty -Xlinker -dependency_info -Xlinker /Users/ahmad/Library/Developer/Xcode/DerivedData/Barqiaty-fubhzmpblqlatcczpgpotdnzmnrt/Build/Intermediates.noindex/Barqiaty.build/Debug-iphonesimulator/Barqiaty.build/Objects-normal/x86_64/barqiaty_dependency_info.dat -o /Users/ahmad/Library/Developer/Xcode/DerivedData/Barqiaty-fubhzmpblqlatcczpgpotdnzmnrt/Build/Products/Debug-iphonesimulator/barqiaty.app/barqiaty
I spotted something odd: -framework -framework. After that it cannot find Lockbox but it might misinterpret the second -framework as the argument and then tries to interpret Lockbox not as an argument (doesn't trail with a - ) and not as a Framework but as an actual file it tries to find.
I would try to remove and add all frameworks again and clear derived data, to see if it goes away.

Xcode build system crashing

Xcode 10.1
Xcode Product->Build works fine
Project is OLD. Migrated from pre-Xcode 9.
No tests in the project
Add unit test target (containing only the empty sample test)
Product->Test fails and crashes the build system
It seems to be caused by a link naturally created by the build from the DerivedData to the /tmp directory.
Xcode compiler output:
error: unexpected explicit output: '<TRIGGER: SymLink /Users/bill.shirley/Library/Developer/Xcode/DerivedData/Projects-aacmhfqthnovqgecjzbjrmjgtxae/Build/Products/Debug-iphoneos/ios1.app /tmp/Kevin.dst/Applications/ios1.app>'
error: unexpected service error: The Xcode build system has crashed. Please close and reopen your workspace.
related but unhelpful Xcode: invalid symlink error when trying to run app in iOS simulator
I've attempted lots of quit and restart Xcode (required), deleting of derived data, making clean, deleting simulators, rebooting with everything clean and reading empty test. To no avail.
I would love to rebuild this project from scratch, but it's massive and I don't have (i.e. want to make) the time currently.
Workaround 2: no testing.
Edit: Previously Unstated.
This app uses Cocoapods.
I tried the suggestion enter link description here, using items 2-6, running pod install when changes are made (and Podfile update) and it changed to a
ld: -bundle_loader can only be used with -bundle
clang: error: linker command failed with exit code 1 (use -v to see invocation)
invocation is:
/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/iPhoneSimulator12.1.sdk -L/Users/bill.shirley/Dev/ios/Build/Products/Debug-iphonesimulator -L/Users/bill.shirley/Dev/ios/Projects/Kevin/../../Pods/CardIO/CardIO -F/Users/bill.shirley/Dev/ios/Build/Products/Debug-iphonesimulator -F/Users/bill.shirley/Dev/ios/Build/Products/Debug-iphonesimulator/Calendar -F/Users/bill.shirley/Dev/ios/Build/Products/Debug-iphonesimulator/FirebaseCore -F/Users/bill.shirley/Dev/ios/Build/Products/Debug-iphonesimulator/FirebaseMessaging -F/Users/bill.shirley/Dev/ios/Build/Products/Debug-iphonesimulator/GoogleUtilities -F/Users/bill.shirley/Dev/ios/Build/Products/Debug-iphonesimulator/Heartland-iOS-SDK -F/Users/bill.shirley/Dev/ios/Build/Products/Debug-iphonesimulator/IGListKit -F/Users/bill.shirley/Dev/ios/Build/Products/Debug-iphonesimulator/IOForm -F/Users/bill.shirley/Dev/ios/Build/Products/Debug-iphonesimulator/OpenCV -F/Users/bill.shirley/Dev/ios/Build/Products/Debug-iphonesimulator/Protobuf -F/Users/bill.shirley/Dev/ios/Build/Products/Debug-iphonesimulator/XMLDictionary -F/Users/bill.shirley/Dev/ios/Build/Products/Debug-iphonesimulator/nanopb -F/Users/bill.shirley/Dev/ios/Projects/Kevin/../../Pods/Crashlytics/iOS -F/Users/bill.shirley/Dev/ios/Projects/Kevin/../../Pods/Fabric/iOS -F/Users/bill.shirley/Dev/ios/Projects/Kevin/../../Pods/FirebaseAnalytics/Frameworks -F/Users/bill.shirley/Dev/ios/Projects/Kevin/../../Pods/FirebaseInstanceID/Frameworks -F/Users/bill.shirley/Dev/ios/Projects/Kevin/../../Pods/GoogleAppMeasurement/Frameworks -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Frameworks -filelist /Users/bill.shirley/Dev/ios/Build/Intermediates.noindex/Kevin.build/Debug-iphonesimulator/ios1Tests.build/Objects-normal/x86_64/ios1Tests.LinkFileList -Xlinker -rpath -Xlinker #executable_path/Frameworks -Xlinker -rpath -Xlinker #loader_path/Frameworks -Xlinker -rpath -Xlinker #executable_path/Frameworks -Xlinker -rpath -Xlinker #loader_path/Frameworks -mios-simulator-version-min=12.1 -dead_strip -bundle_loader /Users/bill.shirley/Dev/ios/Build/Products/Debug-iphonesimulator/ios1.app/ios1 -Xlinker -object_path_lto -Xlinker /Users/bill.shirley/Dev/ios/Build/Intermediates.noindex/Kevin.build/Debug-iphonesimulator/ios1Tests.build/Objects-normal/x86_64/ios1Tests_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fobjc-link-runtime -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator -Xlinker -add_ast_path -Xlinker /Users/bill.shirley/Dev/ios/Build/Intermediates.noindex/Kevin.build/Debug-iphonesimulator/ios1Tests.build/Objects-normal/x86_64/ios1Tests.swiftmodule -lstdc++ -ObjC -lCardIO -lc++ -lopencv_core -lopencv_imgproc -lsqlite3 -lz -framework AVFoundation -framework Accelerate -framework AudioToolbox -framework Calendar -framework CoreMedia -framework CoreVideo -framework Crashlytics -framework FIRAnalyticsConnector -framework Fabric -framework FirebaseAnalytics -framework FirebaseCore -framework FirebaseCoreDiagnostics -framework FirebaseInstanceID -framework FirebaseMessaging -framework Foundation -framework GoogleAppMeasurement -framework GoogleUtilities -framework Heartland_iOS_SDK -framework IGListKit -framework IOForm -framework MobileCoreServices -framework OpenGLES -framework Protobuf -framework QuartzCore -framework Security -framework StoreKit -framework SystemConfiguration -framework UIKit -framework XMLDictionary -framework nanopb -framework opencv2 -framework XCTest -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/bill.shirley/Dev/ios/Build/Intermediates.noindex/Kevin.build/Debug-iphonesimulator/ios1Tests.build/ios1Tests.xctest-Simulated.xcent -framework Pods_ios1Tests -Xlinker -dependency_info -Xlinker /Users/bill.shirley/Dev/ios/Build/Intermediates.noindex/Kevin.build/Debug-iphonesimulator/ios1Tests.build/Objects-normal/x86_64/ios1Tests_dependency_info.dat -o /Users/bill.shirley/Dev/ios/Build/Products/Debug-iphonesimulator/ios1.app/PlugIns/ios1Tests.xctest/ios1Tests

ld: 3 duplicate symbols for architecture i386

while trying to run in Xcode 7.3.1, I am getting the following error :
Ld /Users/ecdev/Library/Developer/Xcode/DerivedData/birdybobble-hfiarbprydmxgtbmjresfgzerqom/Build/Products/Debug-iphonesimulator/birdybobble\ iOS.app/birdybobble\ iOS normal i386
cd /Volumes/WORK/birdybobble/proj.ios_mac
export IPHONEOS_DEPLOYMENT_TARGET=8.0
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/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/iPhoneSimulator9.3.sdk -L/Users/ecdev/Library/Developer/Xcode/DerivedData/birdybobble-hfiarbprydmxgtbmjresfgzerqom/Build/Products/Debug-iphonesimulator -Lsdkbox.framework -LPluginChartboost.framework -LChartboost.framework -LPluginAdMob.framework -LGoogleMobileAds.framework -LPluginIAP.framework -F/Users/ecdev/Library/Developer/Xcode/DerivedData/birdybobble-hfiarbprydmxgtbmjresfgzerqom/Build/Products/Debug-iphonesimulator -F/Volumes/WORK/birdybobble/proj.ios_mac -filelist /Users/ecdev/Library/Developer/Xcode/DerivedData/birdybobble-hfiarbprydmxgtbmjresfgzerqom/Build/Intermediates/birdybobble.build/Debug-iphonesimulator/birdybobble\ iOS.build/Objects-normal/i386/birdybobble\ iOS.LinkFileList -mios-simulator-version-min=8.0 -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -ObjC -stdlib=libc++ -fobjc-link-runtime -lbz2.1.0 -lz.1 -framework OpenGLES -framework UIKit -framework CoreMotion -framework Security /Users/ecdev/Library/Developer/Xcode/DerivedData/birdybobble-hfiarbprydmxgtbmjresfgzerqom/Build/Products/Debug-iphonesimulator/libcocos2d\ iOS.a -framework Foundation -framework CoreGraphics -framework QuartzCore -framework OpenAL -framework AVFoundation -framework AudioToolbox -framework sdkbox -framework PluginChartboost -framework Chartboost -framework StoreKit -framework AdSupport -framework SystemConfiguration -framework PluginAdMob -framework GoogleMobileAds -framework CoreMedia -framework CoreTelephony -framework EventKit -framework EventKitUI -framework MessageUI -framework GameController -framework MediaPlayer -framework PluginIAP -Xlinker -dependency_info -Xlinker /Users/ecdev/Library/Developer/Xcode/DerivedData/birdybobble-hfiarbprydmxgtbmjresfgzerqom/Build/Intermediates/birdybobble.build/Debug-iphonesimulator/birdybobble\ iOS.build/Objects-normal/i386/birdybobble\ iOS_dependency_info.dat -o /Users/ecdev/Library/Developer/Xcode/DerivedData/birdybobble-hfiarbprydmxgtbmjresfgzerqom/Build/Products/Debug-iphonesimulator/birdybobble\ iOS.app/birdybobble\ iOS
duplicate symbol _strerror$UNIX2003 in:
/Users/ecdev/Library/Developer/Xcode/DerivedData/birdybobble-hfiarbprydmxgtbmjresfgzerqom/Build/Intermediates/birdybobble.build/Debug-iphonesimulator/birdybobble iOS.build/Objects-normal/i386/asd.o
/Users/ecdev/Library/Developer/Xcode/DerivedData/birdybobble-hfiarbprydmxgtbmjresfgzerqom/Build/Products/Debug-iphonesimulator/libcocos2d iOS.a(CCImage.o)
duplicate symbol _fopen$UNIX2003 in:
/Users/ecdev/Library/Developer/Xcode/DerivedData/birdybobble-hfiarbprydmxgtbmjresfgzerqom/Build/Intermediates/birdybobble.build/Debug-iphonesimulator/birdybobble iOS.build/Objects-normal/i386/asd.o
/Users/ecdev/Library/Developer/Xcode/DerivedData/birdybobble-hfiarbprydmxgtbmjresfgzerqom/Build/Products/Debug-iphonesimulator/libcocos2d iOS.a(CCImage.o)
duplicate symbol _fwrite$UNIX2003 in:
/Users/ecdev/Library/Developer/Xcode/DerivedData/birdybobble-hfiarbprydmxgtbmjresfgzerqom/Build/Intermediates/birdybobble.build/Debug-iphonesimulator/birdybobble iOS.build/Objects-normal/i386/asd.o
/Users/ecdev/Library/Developer/Xcode/DerivedData/birdybobble-hfiarbprydmxgtbmjresfgzerqom/Build/Products/Debug-iphonesimulator/libcocos2d iOS.a(CCImage.o)
ld: 3 duplicate symbols for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ld: 3 duplicate symbols for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
If someone can help, it will be a great help !!!
Thanks in advance.
From Xcode 7.3 onwards you can you can's use any custom variable twice. If you want to use then just Go to Build Setting and search for No Common Blocks and set it NO. And build again you will not get this error again.

Swift Linking Error Arm V7

I have been trying for hours to fix this build error.
None of the advice from the dozens of threads I've read has fixed this error. What can I do?
"ld: entry point (_main) undefined. for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see >invocation)"
Ld /Users/yanayrosen/Library/Developer/Xcode/DerivedData/The-Talon-ebdutvfwgeagoxgpqbewfvfjaksq/Build/Intermediates/The-Talon.build/Release-iphoneos/The-Talon.build/Objects-normal/arm64/The-Talon normal arm64
cd /Users/yanayrosen/Desktop/Talon-Iphone-master
export IPHONEOS_DEPLOYMENT_TARGET=8.0
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk -L/Users/yanayrosen/Library/Developer/Xcode/DerivedData/The-Talon-ebdutvfwgeagoxgpqbewfvfjaksq/Build/Products/Release-iphoneos -L/Users/yanayrosen/Desktop/Talon-Iphone-master/../../../../Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/../iPhoneOS.sdk/usr/lib -F/Users/yanayrosen/Library/Developer/Xcode/DerivedData/The-Talon-ebdutvfwgeagoxgpqbewfvfjaksq/Build/Products/Release-iphoneos -F/Users/yanayrosen/Desktop/Talon-Iphone-master -F/Users/yanayrosen/Desktop/Talon-Iphone-master/Talon -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/../iPhoneOS.sdk/System/Library/Frameworks -filelist /Users/yanayrosen/Library/Developer/Xcode/DerivedData/The-Talon-ebdutvfwgeagoxgpqbewfvfjaksq/Build/Intermediates/The-Talon.build/Release-iphoneos/The-Talon.build/Objects-normal/arm64/The-Talon.LinkFileList -Xlinker -rpath -Xlinker #executable_path/Frameworks -miphoneos-version-min=8.0 -dead_strip -fembed-bitcode-marker -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos -Xlinker -add_ast_path -Xlinker /Users/yanayrosen/Library/Developer/Xcode/DerivedData/The-Talon-ebdutvfwgeagoxgpqbewfvfjaksq/Build/Intermediates/The-Talon.build/Release-iphoneos/The-Talon.build/Objects-normal/arm64/The_Talon.swiftmodule -framework SystemConfiguration -framework StoreKit -framework Security -framework QuartzCore -lz.1 -lsqlite3 -framework CoreLocation -framework CoreGraphics -framework CFNetwork -framework AudioToolbox -Xlinker -dependency_info -Xlinker /Users/yanayrosen/Library/Developer/Xcode/DerivedData/The-Talon-ebdutvfwgeagoxgpqbewfvfjaksq/Build/Intermediates/The-Talon.build/Release-iphoneos/The-Talon.build/Objects-normal/arm64/The-Talon_dependency_info.dat -o /Users/yanayrosen/Library/Developer/Xcode/DerivedData/The-Talon-ebdutvfwgeagoxgpqbewfvfjaksq/Build/Intermediates/The-Talon.build/Release-iphoneos/The-Talon.build/Objects-normal/arm64/The-Talon"

Resources