Segmentation Fault 11 at Archiving Obj C project - ios

I'm working on an app, and at the moment to Archiving it, i get the Segmentation Fault 11 on X Code (I'm using xcode 7).
Already tried restart xcode, eliminate the only dependency (The cocoapod of google maps). The rare thing is that in te Simulator and in an iPad, the app compiles and runs normally, only when i try to Archive it, at the Linking step, it crashes.
This is the output of the error.
Ld /Users/maxclowreed/Library/Developer/Xcode/DerivedData/spapp-gmcplcaxmebxtjcahseviqjhmvwc/Build/Intermediates/ArchiveIntermediates/spapp/IntermediateBuildFilesPath/spapp.build/Release-iphoneos/spapp.build/Objects-normal/arm64/spapp normal arm64
cd /Users/maxclowreed/Documents/OnlyWebStudio/spapp
export IPHONEOS_DEPLOYMENT_TARGET=9.1
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/maxclowreed/Library/Developer/Xcode/DerivedData/spapp-gmcplcaxmebxtjcahseviqjhmvwc/Build/Intermediates/ArchiveIntermediates/spapp/BuildProductsPath/Release-iphoneos -L/Users/maxclowreed/Documents/OnlyWebStudio/spapp/build/Debug-iphoneos -F/Users/maxclowreed/Library/Developer/Xcode/DerivedData/spapp-gmcplcaxmebxtjcahseviqjhmvwc/Build/Intermediates/ArchiveIntermediates/spapp/BuildProductsPath/Release-iphoneos -F/Users/maxclowreed/Documents/OnlyWebStudio/spapp/Pods/GoogleMaps/Frameworks -filelist /Users/maxclowreed/Library/Developer/Xcode/DerivedData/spapp-gmcplcaxmebxtjcahseviqjhmvwc/Build/Intermediates/ArchiveIntermediates/spapp/IntermediateBuildFilesPath/spapp.build/Release-iphoneos/spapp.build/Objects-normal/arm64/spapp.LinkFileList -Xlinker -rpath -Xlinker #executable_path/Frameworks -miphoneos-version-min=9.1 -dead_strip -fembed-bitcode -Xlinker -bitcode_verify -Xlinker -bitcode_hide_symbols -Xlinker -bitcode_symbol_map -Xlinker /Users/maxclowreed/Library/Developer/Xcode/DerivedData/spapp-gmcplcaxmebxtjcahseviqjhmvwc/Build/Intermediates/ArchiveIntermediates/spapp/BuildProductsPath/Release-iphoneos -ObjC -lc++ -licucore -lz -framework AVFoundation -framework Accelerate -framework CoreBluetooth -framework CoreData -framework CoreGraphics -framework CoreLocation -framework CoreText -framework GLKit -framework GoogleMaps -framework ImageIO -framework OpenGLES -framework QuartzCore -framework Security -framework SystemConfiguration -fobjc-arc -fobjc-link-runtime -Xlinker -dependency_info -Xlinker /Users/maxclowreed/Library/Developer/Xcode/DerivedData/spapp-gmcplcaxmebxtjcahseviqjhmvwc/Build/Intermediates/ArchiveIntermediates/spapp/IntermediateBuildFilesPath/spapp.build/Release-iphoneos/spapp.build/Objects-normal/arm64/spapp_dependency_info.dat -o /Users/maxclowreed/Library/Developer/Xcode/DerivedData/spapp-gmcplcaxmebxtjcahseviqjhmvwc/Build/Intermediates/ArchiveIntermediates/spapp/IntermediateBuildFilesPath/spapp.build/Release-iphoneos/spapp.build/Objects-normal/arm64/spapp
ld: warning: directory not found for option '-L/Users/maxclowreed/Documents/OnlyWebStudio/spapp/build/Debug-iphoneos'
clang: error: unable to execute command: Segmentation fault: 11
clang: error: linker command failed due to signal (use -v to see invocation)
I really appreciate your help.

Related

Segmentation Fault, Project is not getting built on Xcode 10 and Mojave.

I am working on an iOS application that uses several third party frameworks.The project was running fine on X-Code 9.3.1 running on High Sierra but when i updated my macOS to Mojave and X-Code to version 10.0 the compiler started throwing the following error while linking the libraries:
clang: error: unable to execute command: Segmentation fault: 11
clang: error: linker command failed due to signal (use -v to see invocation)
I have tried all of the solutions posted for questions related to segmentation fault but unfortunately none of them worked.I tried using the X-Code 9.3.1 where the project was getting compiled with no issues on High Sierra but got the same errros on Mojave.The following is the complete error message from X-Code.
Ld /Users/raghavendra/Library/Developer/Xcode/DerivedData/Controller-befvgrmcpngvshariigzvmibtnhx/Build/Products/Debug-iphoneos/Controller-dbg.app/Controller-dbg normal arm64
cd /Users/raghavendra/Ava_Spark_Bit_bucket_copy
export IPHONEOS_DEPLOYMENT_TARGET=9.3
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/iPhoneOS11.3.sdk -L/Users/raghavendra/Library/Developer/Xcode/DerivedData/Controller-befvgrmcpngvshariigzvmibtnhx/Build/Products/Debug-iphoneos -L/Users/raghavendra/Ava_Spark_Bit_bucket_copy/ThirdParty -F/Users/raghavendra/Library/Developer/Xcode/DerivedData/Controller-befvgrmcpngvshariigzvmibtnhx/Build/Products/Debug-iphoneos -F/Users/raghavendra/Ava_Spark_Bit_bucket_copy/ThirdParty -F/Users/raghavendra/Documents/JabberSDK -F/Users/raghavendra/Ava_Spark_Bit_bucket_copy/SPARK\ frameworks -filelist /Users/raghavendra/Library/Developer/Xcode/DerivedData/Controller-befvgrmcpngvshariigzvmibtnhx/Build/Intermediates.noindex/Controller.build/Debug-iphoneos/Controller.build/Objects-normal/arm64/Controller-dbg.LinkFileList -Xlinker -rpath -Xlinker #executable_path/Frameworks -Xlinker -rpath -Xlinker #executable_path/Frameworks -Xlinker -map -Xlinker /Users/raghavendra/Library/Developer/Xcode/DerivedData/Controller-befvgrmcpngvshariigzvmibtnhx/Build/Intermediates.noindex/Controller.build/Debug-iphoneos/Controller.build/Controller-dbg-LinkMap-normal-arm64.txt -miphoneos-version-min=9.3 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/raghavendra/Library/Developer/Xcode/DerivedData/Controller-befvgrmcpngvshariigzvmibtnhx/Build/Intermediates.noindex/Controller.build/Debug-iphoneos/Controller.build/Objects-normal/arm64/Controller-dbg_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -fobjc-arc -fobjc-link-runtime -fprofile-instr-generate -stdlib=libc++ -ObjC -framework Reveal -lModelObjects -framework Fabric -lBaseDataModelObject -framework Crashlytics -framework VSTheme -framework KeychainItemWrapper -framework MBProgressHUD -framework MessageUI -framework PullableView -framework UIKit -framework Foundation -framework MBProgressHUD -framework CoreGraphics -framework CocoaLumberjack -framework EventKit -framework WebSockets -framework QuartzCore -framework NetworkReachability -Xlinker -dependency_info -Xlinker /Users/raghavendra/Library/Developer/Xcode/DerivedData/Controller-befvgrmcpngvshariigzvmibtnhx/Build/Intermediates.noindex/Controller.build/Debug-iphoneos/Controller.build/Objects-normal/arm64/Controller-dbg_dependency_info.dat -o /Users/raghavendra/Library/Developer/Xcode/DerivedData/Controller-befvgrmcpngvshariigzvmibtnhx/Build/Products/Debug-iphoneos/Controller-dbg.app/Controller-dbg
clang: error: unable to execute command: Segmentation fault: 11
clang: error: linker command failed due to signal (use -v to see invocation)
Please help me resolve this issue.your inputs are highly appreciated.

react-native-fbads production build error on iOS - library not found

Description
I can't build a production build of my react-native app with react-native-fbads as a dependency.
I get the following error:
ld: library not found for -lReactNativeAdsFacebook
clang: error: linker command failed with exit code 1 (use -v to see invocation)
When building for production release with this library I encounter this problem on iOS. Android is working fine. I am using the newest version from npm but it also happens with the master branch.
When setting Build Active Architecture Only to YES in XCode Build Settings and building for an iPhone 7 iOS 12 everything works fine. This is not a solution for production because older versions should also be supported.
With 4.2.0 it's building fine.
stack trace
Ld /Users/jobeso/Library/Developer/Xcode/DerivedData/playground-breooeaonoutyzaiywigdxwsujyp/Build/Intermediates.noindex/playground.build/Release-iphonesimulator/playground.build/Objects-normal/x86_64/playground normal x86_64 (in target: playground)
cd /Users/jobeso/projects/playground/ios
export IPHONEOS_DEPLOYMENT_TARGET=9.0
/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.0.sdk -L/Users/jobeso/Library/Developer/Xcode/DerivedData/playground-breooeaonoutyzaiywigdxwsujyp/Build/Products/Release-iphonesimulator -F/Users/jobeso/Library/Developer/Xcode/DerivedData/playground-breooeaonoutyzaiywigdxwsujyp/Build/Products/Release-iphonesimulator -F/Users/jobeso/projects/playground/ios/Pods/FBAudienceNetwork -filelist /Users/jobeso/Library/Developer/Xcode/DerivedData/playground-breooeaonoutyzaiywigdxwsujyp/Build/Intermediates.noindex/playground.build/Release-iphonesimulator/playground.build/Objects-normal/x86_64/playground.LinkFileList -Xlinker -rpath -Xlinker #executable_path/Frameworks -mios-simulator-version-min=9.0 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/jobeso/Library/Developer/Xcode/DerivedData/playground-breooeaonoutyzaiywigdxwsujyp/Build/Intermediates.noindex/playground.build/Release-iphonesimulator/playground.build/Objects-normal/x86_64/playground_lto.o -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -ObjC -lc++ -lxml2 -framework AVFoundation -framework AudioToolbox -framework CoreGraphics -framework CoreImage -framework CoreMedia -framework FBAudienceNetwork -framework Foundation -framework Security -framework StoreKit -framework UIKit -weak_framework AdSupport -weak_framework CoreMotion -weak_framework SafariServices -weak_framework WebKit -ObjC -lc++ -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/jobeso/Library/Developer/Xcode/DerivedData/playground-breooeaonoutyzaiywigdxwsujyp/Build/Intermediates.noindex/playground.build/Release-iphonesimulator/playground.build/playground.app-Simulated.xcent /Users/jobeso/Library/Developer/Xcode/DerivedData/playground-breooeaonoutyzaiywigdxwsujyp/Build/Products/Release-iphonesimulator/libRCTBlob.a /Users/jobeso/Library/Developer/Xcode/DerivedData/playground-breooeaonoutyzaiywigdxwsujyp/Build/Products/Release-iphonesimulator/libRCTAnimation.a /Users/jobeso/Library/Developer/Xcode/DerivedData/playground-breooeaonoutyzaiywigdxwsujyp/Build/Products/Release-iphonesimulator/libReact.a /Users/jobeso/Library/Developer/Xcode/DerivedData/playground-breooeaonoutyzaiywigdxwsujyp/Build/Products/Release-iphonesimulator/libRCTActionSheet.a /Users/jobeso/Library/Developer/Xcode/DerivedData/playground-breooeaonoutyzaiywigdxwsujyp/Build/Products/Release-iphonesimulator/libRCTGeolocation.a /Users/jobeso/Library/Developer/Xcode/DerivedData/playground-breooeaonoutyzaiywigdxwsujyp/Build/Products/Release-iphonesimulator/libRCTImage.a /Users/jobeso/Library/Developer/Xcode/DerivedData/playground-breooeaonoutyzaiywigdxwsujyp/Build/Products/Release-iphonesimulator/libRCTLinking.a /Users/jobeso/Library/Developer/Xcode/DerivedData/playground-breooeaonoutyzaiywigdxwsujyp/Build/Products/Release-iphonesimulator/libRCTNetwork.a /Users/jobeso/Library/Developer/Xcode/DerivedData/playground-breooeaonoutyzaiywigdxwsujyp/Build/Products/Release-iphonesimulator/libRCTSettings.a /Users/jobeso/Library/Developer/Xcode/DerivedData/playground-breooeaonoutyzaiywigdxwsujyp/Build/Products/Release-iphonesimulator/libRCTText.a /Users/jobeso/Library/Developer/Xcode/DerivedData/playground-breooeaonoutyzaiywigdxwsujyp/Build/Products/Release-iphonesimulator/libRCTVibration.a /Users/jobeso/Library/Developer/Xcode/DerivedData/playground-breooeaonoutyzaiywigdxwsujyp/Build/Products/Release-iphonesimulator/libRCTWebSocket.a -lPods-playground -lReactNativeAdsFacebook -Xlinker -dependency_info -Xlinker /Users/jobeso/Library/Developer/Xcode/DerivedData/playground-breooeaonoutyzaiywigdxwsujyp/Build/Intermediates.noindex/playground.build/Release-iphonesimulator/playground.build/Objects-normal/x86_64/playground_dependency_info.dat -o /Users/jobeso/Library/Developer/Xcode/DerivedData/playground-breooeaonoutyzaiywigdxwsujyp/Build/Intermediates.noindex/playground.build/Release-iphonesimulator/playground.build/Objects-normal/x86_64/playground
Reproducible Demo
sample project on gitlab
issue
issue on github
This was a problem with the header search paths in the library. A pr with a fix is in the linked github issue.

Xcode displayed error while compiler start to compile

I constructed one project. The dependency is managed via CocoaPods.
When ran the project. It occurred errors as below:
Ld
/Users/zhaoxinqiang/Library/Developer/Xcode/DerivedData/iXueXi-ddaxyfhwxiktmtgsfbafazqmdwlu/Build/Products/Debug-iphonesimulator/iXueXi.app/iXueXi
normal x86_64
cd /Users/zhaoxinqiang/Desktop/iXueXi
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.3.sdk
-L/Users/zhaoxinqiang/Library/Developer/Xcode/DerivedData/iXueXi-ddaxyfhwxiktmtgsfbafazqmdwlu/Build/Products/Debug-iphonesimulator
-L/Users/zhaoxinqiang/Library/Developer/Xcode/DerivedData/iXueXi-ddaxyfhwxiktmtgsfbafazqmdwlu/Build/Products/Debug-iphonesimulator/ACAlertController
-L/Users/zhaoxinqiang/Library/Developer/Xcode/DerivedData/iXueXi-ddaxyfhwxiktmtgsfbafazqmdwlu/Build/Products/Debug-iphonesimulator/AFNetworking
-L/Users/zhaoxinqiang/Library/Developer/Xcode/DerivedData/iXueXi-ddaxyfhwxiktmtgsfbafazqmdwlu/Build/Products/Debug-iphonesimulator/AliyunOSSiOS
-L/Users/zhaoxinqiang/Library/Developer/Xcode/DerivedData/iXueXi-ddaxyfhwxiktmtgsfbafazqmdwlu/Build/Products/Debug-iphonesimulator/BACustomAlertView
-L/Users/zhaoxinqiang/Library/Developer/Xcode/DerivedData/iXueXi-ddaxyfhwxiktmtgsfbafazqmdwlu/Build/Products/Debug-iphonesimulator/MBProgressHUD
-L/Users/zhaoxinqiang/Library/Developer/Xcode/DerivedData/iXueXi-ddaxyfhwxiktmtgsfbafazqmdwlu/Build/Products/Debug-iphonesimulator/MJRefresh
-L/Users/zhaoxinqiang/Library/Developer/Xcode/DerivedData/iXueXi-ddaxyfhwxiktmtgsfbafazqmdwlu/Build/Products/Debug-iphonesimulator/Mantle
-L/Users/zhaoxinqiang/Library/Developer/Xcode/DerivedData/iXueXi-ddaxyfhwxiktmtgsfbafazqmdwlu/Build/Products/Debug-iphonesimulator/Masonry
-L/Users/zhaoxinqiang/Library/Developer/Xcode/DerivedData/iXueXi-ddaxyfhwxiktmtgsfbafazqmdwlu/Build/Products/Debug-iphonesimulator/Reachability
-L/Users/zhaoxinqiang/Library/Developer/Xcode/DerivedData/iXueXi-ddaxyfhwxiktmtgsfbafazqmdwlu/Build/Products/Debug-iphonesimulator/ReactiveObjC
-L/Users/zhaoxinqiang/Library/Developer/Xcode/DerivedData/iXueXi-ddaxyfhwxiktmtgsfbafazqmdwlu/Build/Products/Debug-iphonesimulator/SDAutoLayout
-L/Users/zhaoxinqiang/Library/Developer/Xcode/DerivedData/iXueXi-ddaxyfhwxiktmtgsfbafazqmdwlu/Build/Products/Debug-iphonesimulator/SDCycleScrollView
-L/Users/zhaoxinqiang/Library/Developer/Xcode/DerivedData/iXueXi-ddaxyfhwxiktmtgsfbafazqmdwlu/Build/Products/Debug-iphonesimulator/SDWebImage
-L/Users/zhaoxinqiang/Library/Developer/Xcode/DerivedData/iXueXi-ddaxyfhwxiktmtgsfbafazqmdwlu/Build/Products/Debug-iphonesimulator/TYPagerController
-L/Users/zhaoxinqiang/Library/Developer/Xcode/DerivedData/iXueXi-ddaxyfhwxiktmtgsfbafazqmdwlu/Build/Products/Debug-iphonesimulator/TZImagePickerController
-L/Users/zhaoxinqiang/Desktop/iXueXi/Pods/JCore -L/Users/zhaoxinqiang/Desktop/iXueXi/iXueXi/Venders/AliPay -F/Users/zhaoxinqiang/Library/Developer/Xcode/DerivedData/iXueXi-ddaxyfhwxiktmtgsfbafazqmdwlu/Build/Products/Debug-iphonesimulator
-F/Users/zhaoxinqiang/Desktop/iXueXi/Pods/AlipaySDK-2.0 -filelist /Users/zhaoxinqiang/Library/Developer/Xcode/DerivedData/iXueXi-ddaxyfhwxiktmtgsfbafazqmdwlu/Build/Intermediates/iXueXi.build/Debug-iphonesimulator/iXueXi.build/Objects-normal/x86_64/iXueXi.LinkFileList
-mios-simulator-version-min=8.0 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/zhaoxinqiang/Library/Developer/Xcode/DerivedData/iXueXi-ddaxyfhwxiktmtgsfbafazqmdwlu/Build/Intermediates/iXueXi.build/Debug-iphonesimulator/iXueXi.build/Objects-normal/x86_64/iXueXi_lto.o
-Xlinker -export_dynamic -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -ObjC -lACAlertController -lAFNetworking -lAliyunOSSiOS -lBACustomAlertView -lMBProgressHUD -lMJRefresh -lMantle -lMasonry -lReachability -lReactiveObjC -lSDAutoLayout -lSDCycleScrollView -lSDWebImage -lTYPagerController -lTZImagePickerController -lc++ -ljcore-ios-1.1.1 -lresolv -lz -framework AlipaySDK -framework CFNetwork -framework CoreFoundation -framework CoreGraphics -framework CoreMotion
-framework CoreTelephony -framework Foundation -framework ImageIO -framework MobileCoreServices -framework QuartzCore -framework Security -framework SystemConfiguration -framework UIKit
-weak_framework UserNotifications -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/zhaoxinqiang/Library/Developer/Xcode/DerivedData/iXueXi-ddaxyfhwxiktmtgsfbafazqmdwlu/Build/Intermediates/iXueXi.build/Debug-iphonesimulator/iXueXi.build/iXueXi.app.xcent
-weak_framework NotificationCenter -framework SystemConfiguration -lresolv -lssl -lcrypto -framework MediaPlayer -framework AdSupport -lPods-iXueXi -Xlinker -dependency_info -Xlinker /Users/zhaoxinqiang/Library/Developer/Xcode/DerivedData/iXueXi-ddaxyfhwxiktmtgsfbafazqmdwlu/Build/Intermediates/iXueXi.build/Debug-iphonesimulator/iXueXi.build/Objects-normal/x86_64/iXueXi_dependency_info.dat
-o /Users/zhaoxinqiang/Library/Developer/Xcode/DerivedData/iXueXi-ddaxyfhwxiktmtgsfbafazqmdwlu/Build/Products/Debug-iphonesimulator/iXueXi.app/iXueXi
ld: library not found for -lssl clang: error: linker command failed
with exit code 1 (use -v to see invocation)
Sometimes after renaming a target or moving something, you can corrupt your pods installation. Luckily, there's an easier way to fix it than sudo make install's solution.
Run pod deintegrate to remove any trace of Cocoapods from your
project.
Run pod install again to add it all back
One of the possible solution in My case go to xcode Preferences -> Locations -> Derived Data then clean this folder and run again. it worked for me.
I had same problem once and resolved it by removing duplicate items from Target. Find any duplicate folder or file in your project and remove all duplicate from Project. That will solve your problem.

Building issue after migration to Xcode 7: ld: framework not found -L/

I recently updated my Xcode from 6.4 to 7, and have fixed all my code to be Swift 2 compatible.
I am having an issue: when building my project, the following error arises:
ld: framework not found -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I have tried to alter the library search path in the build settings by adding:
$(PROJECT_DIR)
$(inherited)
but have not resulted in any progress.
This is the complete error note:
Ld
/Users/UserName/Library/Developer/Xcode/DerivedData/Appname\1-eekisechftoomidopihcmbkefaua/Build/Products/Debug-iphonesimulator/Appname\1.app/Appname\1
normal x86_64
cd "/Users/UserName/Desktop/Appname1 - iOS app/Appname1 - Swift 2 : xcode 7 - New/Appname1"
export IPHONEOS_DEPLOYMENT_TARGET=9.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/iPhoneSimulator9.0.sdk
-L/Users/UserName/Library/Developer/Xcode/DerivedData/Appname\1-eekisechftoomidopihcmbkefaua/Build/Products/Debug-iphonesimulator
-F/Users/UserName/Library/Developer/Xcode/DerivedData/Appname\1-eekisechftoomidopihcmbkefaua/Build/Products/Debug-iphonesimulator
-F. -FFacebookSDKStrings.bundle -FAppname\1 -FAppname\1Tests -FAppname\1UITests -FFacebookSDKStrings.bundle/Resources -FAppname\1/PNChart -FAppname\1/Appname_o.xcdatamodeld -FAppname\1/VoteLogDataBase.xcdatamodeld -FAppname\1/PNChart/PNBarChart -FAppname\1/PNChart/PNLineChart -FAppname\1/Appname_o.xcdatamodeld/Appname_o.xcdatamodel -FAppname\1/VoteLogDataBase.xcdatamodeld/VoteLogDataBase.xcdatamodel -filelist /Users/UserName/Library/Developer/Xcode/DerivedData/Appname\1-eekisechftoomidopihcmbkefaua/Build/Intermediates/Appname\1.build/Debug-iphonesimulator/Appname\1.build/Objects-normal/x86_64/Appname\1.LinkFileList
-Xlinker -rpath -Xlinker #executable_path/Frameworks -Xlinker -rpath -Xlinker /Users/UserName/Desktop/Appname\1\ -\ iOS\ app/Appname\1\ -\ Swift\ 2\ :\ xcode\ 7\ -\ New/Appname\1
-mios-simulator-version-min=9.0 -Xlinker -objc_abi_version -Xlinker 2 -ObjC -framework -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator
-Xlinker -add_ast_path -Xlinker /Users/UserName/Library/Developer/Xcode/DerivedData/Appname\1-eekisechftoomidopihcmbkefaua/Build/Intermediates/Appname\1.build/Debug-iphonesimulator/Appname\1.build/Objects-normal/x86_64/Appname_o.swiftmodule
-framework Accounts -framework AudioToolbox -framework ParseFacebookUtilsV4 -framework ParseFacebookUtils -framework
FBSDKShareKit -framework CFNetwork -framework ParseCrashReporting
-framework CoreData -framework FBAudienceNetwork -framework CoreGraphics -framework CoreLocation -framework ParseUI -lsqlite3.0
-framework FBSDKMessengerShareKit -lz -framework Bolts -framework FBSDKLoginKit -framework MobileCoreServices -framework QuartzCore
-framework ParseTwitterUtils -framework Security -framework Social -framework SystemConfiguration -framework FBSDKCoreKit -framework Twitter -framework Bolts -Xlinker -dependency_info -Xlinker
/Users/UserName/Library/Developer/Xcode/DerivedData/Appname\1-eekisechftoomidopihcmbkefaua/Build/Intermediates/Appname\1.build/Debug-iphonesimulator/Appname\1.build/Objects-normal/x86_64/Appname\1_dependency_info.dat
-o /Users/UserName/Library/Developer/Xcode/DerivedData/Appname\1-eekisechftoomidopihcmbkefaua/Build/Products/Debug-iphonesimulator/Appname\1.app/Appname\1
ld: framework not found
-L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator
clang: error: linker command failed with exit code 1 (use -v to see
invocation)

ld: framework not found "CustomFrameworkName"

I am trying to create a Custom Framework following this url
http://www.makeandbuild.com/blog/post/watchkit-with-shared-core-data
However When I am creating a custom framework called "DataStore"
Ld /Users/harshadkhedekar/Library/Developer/Xcode/DerivedData/TestScanner-fsxgnfdpdqvxdlasdbbjeurajlkj/Build/Intermediates/TestScanner.build/Debug-iphonesimulator/TestScanner.build/Objects-normal/x86_64/TestScanner normal x86_64
cd "/Users/harshadkhedekar/Documents/Harshad/Projects/Sandvik/Start Value/17 Aug"
export IPHONEOS_DEPLOYMENT_TARGET=7.0
export PATH="/Applications/Xcode-beta 3.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode-beta 3.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode-beta\ 3.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch x86_64 -isysroot /Applications/Xcode-beta\ 3.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.0.sdk -L/Users/harshadkhedekar/Library/Developer/Xcode/DerivedData/TestScanner-fsxgnfdpdqvxdlasdbbjeurajlkj/Build/Products/Debug-iphonesimulator -L/Users/harshadkhedekar/Documents/Harshad/Projects/Sandvik/Start\ Value/17\ Aug/TestScanner/RedLaserSDK -F/Users/harshadkhedekar/Library/Developer/Xcode/DerivedData/TestScanner-fsxgnfdpdqvxdlasdbbjeurajlkj/Build/Products/Debug-iphonesimulator -F/Users/harshadkhedekar/Documents/Harshad/Projects/Sandvik/Start\ Value/17\ Aug/DataStore -filelist /Users/harshadkhedekar/Library/Developer/Xcode/DerivedData/TestScanner-fsxgnfdpdqvxdlasdbbjeurajlkj/Build/Intermediates/TestScanner.build/Debug-iphonesimulator/TestScanner.build/Objects-normal/x86_64/TestScanner.LinkFileList -Xlinker -rpath -Xlinker "" -Xlinker -rpath -Xlinker #executable_path/Frameworks -mios-simulator-version-min=7.0 -Xlinker -objc_abi_version -Xlinker 2 -ObjC -fobjc-arc -fobjc-link-runtime -stdlib=libstdc++ -framework CoreLocation -framework Security -framework OpenGLES -liconv -framework Foundation -framework CoreVideo -framework CoreMedia -lRedLaserSDK_arm64 -framework DataStore -framework QuartzCore -framework AudioToolbox -framework AVFoundation -framework UIKit -framework CoreGraphics -framework CoreData -Xlinker -dependency_info -Xlinker /Users/harshadkhedekar/Library/Developer/Xcode/DerivedData/TestScanner-fsxgnfdpdqvxdlasdbbjeurajlkj/Build/Intermediates/TestScanner.build/Debug-iphonesimulator/TestScanner.build/Objects-normal/x86_64/TestScanner_dependency_info.dat -o /Users/harshadkhedekar/Library/Developer/Xcode/DerivedData/TestScanner-fsxgnfdpdqvxdlasdbbjeurajlkj/Build/Intermediates/TestScanner.build/Debug-iphonesimulator/TestScanner.build/Objects-normal/x86_64/TestScanner
ld: framework not found DataStore
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I tried adding the Framework Search paths to "$(SRCROOT)/DataStore" and "$(inherited)". But still I am this issue is not fixed. Can I know the root cause of this issue. When I create a blank project and add custom framework to it, the blank project is build successfully. I am using Xcode 7 Beta 3 version.
Thanks

Resources