How can I replace SystemConfiguration import that is used for Reachability on watchos library? - afnetworking

Forgive me for a very general question but I am trying to get at the heart of how to update the aws sdk to support watchos which has proven to be a difficult and very lucrative (for developers) project. Apologies aside, here is my question.
The aws-sdk is a powerful library that provides sub-modules on iOS for interacting with aws services, however there is no support for watchos. When attempting to compile a workspace that has the aws-sdk ported to watchos, I received a compile time error.
Ld /Users/osxuser/Library/Developer/Xcode/DerivedData/AppName-fvzfbpyutkcifkaajtsobldxanrc/Build/Products/Debug-watchsimulator/AWSCore-watchOS/AWSCore.framework/AWSCore normal i386
cd "/Users/osxuser/Documents/code/NTDI_Corporate/iwatch apps/AppName/Pods"
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/WatchSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
export WATCHOS_DEPLOYMENT_TARGET=4.3
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch i386 -dynamiclib -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/WatchSimulator.platform/Developer/SDKs/WatchSimulator4.3.sdk -L/Users/osxuser/Library/Developer/Xcode/DerivedData/AppName-fvzfbpyutkcifkaajtsobldxanrc/Build/Products/Debug-watchsimulator/AWSCore-watchOS -F/Users/osxuser/Library/Developer/Xcode/DerivedData/AppName-fvzfbpyutkcifkaajtsobldxanrc/Build/Products/Debug-watchsimulator/AWSCore-watchOS -filelist /Users/osxuser/Library/Developer/Xcode/DerivedData/AppName-fvzfbpyutkcifkaajtsobldxanrc/Build/Intermediates.noindex/Pods.build/Debug-watchsimulator/AWSCore-watchOS.build/Objects-normal/i386/AWSCore.LinkFileList -install_name #rpath/AWSCore.framework/AWSCore -Xlinker -rpath -Xlinker #executable_path/Frameworks -Xlinker -rpath -Xlinker #loader_path/Frameworks -mwatchos-simulator-version-min=4.3 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/osxuser/Library/Developer/Xcode/DerivedData/AppName-fvzfbpyutkcifkaajtsobldxanrc/Build/Intermediates.noindex/Pods.build/Debug-watchsimulator/AWSCore-watchOS.build/Objects-normal/i386/AWSCore_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -fapplication-extension -lsqlite3 -lz -framework CoreGraphics -framework Foundation -framework Security -framework SystemConfiguration -framework UIKit -framework CoreGraphics -framework Foundation -framework Security -framework SystemConfiguration -framework UIKit -compatibility_version 1 -current_version 1 -Xlinker -dependency_info -Xlinker /Users/osxuser/Library/Developer/Xcode/DerivedData/AppName-fvzfbpyutkcifkaajtsobldxanrc/Build/Intermediates.noindex/Pods.build/Debug-watchsimulator/AWSCore-watchOS.build/Objects-normal/i386/AWSCore_dependency_info.dat -o /Users/osxuser/Library/Developer/Xcode/DerivedData/AppName-fvzfbpyutkcifkaajtsobldxanrc/Build/Products/Debug-watchsimulator/AWSCore-watchOS/AWSCore.framework/AWSCore
> ld: framework not found SystemConfiguration
I am trying to get my imports right. The SystemConfiguration for watchos compilations fails. The problem seems to lie in the inclusion of the SystemConfiguration library here.
How can I replace
#import <SystemConfiguration/SystemConfiguration.h>
line with something that would compile on watchos? Or for a more general question, how can a developer, like me, replace the SystemConfiguration library import on watchos projects that rely on it?
Here is my branch attempting to port the AWS SDK to not rely on SystemConfiguration.h.
Extra
The one library that seemed successful can be found here.

Have you reviewed Apple’s documentation on the differences between watchOS and iOS support? I doubt that watchOS is a good platform for AWS integration, but that is just my personal thought after a quick review.
Have you looked at the Apple documentation for SystemConfiguration here? : https://developer.apple.com/documentation/systemconfiguration
Note that watchOS is not listed as supported. That is the initial cause of your problem. watchOS only supports WatchConnectivity framework at the current time, along with a limited web interface using NSURLConnection (I’m simplifying a little here.)
Any port to watchOS would need to replace any portions using connectivity monitoring and web connections with the more limited options available on watchOS. You will need to review all remote interactions in the AWS api to see if they can be accomplished with the limited features available on watchOS. For things that watchOS cannot do, it is possible to handoff functionality to the associated iOS app, in most cases. But you will also need to review that to see how it fits in to your app design.

Related

Module RNPaypalWrapper error Apple-Mach-O linker Error in react native

Hey guys Im making an app of react native after installing react native payola wrapper im facing this issues
Module RNPaypalWrapper requires main queue setup since it overrides constantsToExport but doesn't implement requiresMainQueueSetup. In a future release React Native will default to initializing all native modules on a background thread unless explicitly opted-out of.
Apple-Mach-O linker Error
Ld /Users/mac/Library/Developer/Xcode/DerivedData/Shopping-bffzrhylanxuelcazupfwylbgyoq/Build/Products/Debug-iphonesimulator/Shopping.app/Shopping
normal x86_64
cd /Users/mac/Desktop/Tanveer/Tabtest/Shopping/ios
export IPHONEOS_DEPLOYMENT_TARGET=9.0
export PATH="/Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode_9.4.1.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode_9.4.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
-arch x86_64 -isysroot /Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk
-L/Users/mac/Library/Developer/Xcode/DerivedData/Shopping-bffzrhylanxuelcazupfwylbgyoq/Build/Products/Debug-iphonesimulator
-L/Users/mac/Desktop/Tanveer/Tabtest/Shopping/ios/Pods/CardIO/CardIO -L/Users/mac/Desktop/Tanveer/Tabtest/Shopping/ios/Pods/PayPal-iOS-SDK/PayPalMobile
-F/Users/mac/Library/Developer/Xcode/DerivedData/Shopping-bffzrhylanxuelcazupfwylbgyoq/Build/Products/Debug-iphonesimulator
-filelist /Users/mac/Library/Developer/Xcode/DerivedData/Shopping-bffzrhylanxuelcazupfwylbgyoq/Build/Intermediates.noindex/Shopping.build/Debug-iphonesimulator/Shopping.build/Objects-normal/x86_64/Shopping.LinkFileList
-Xlinker -rpath -Xlinker #executable_path/Frameworks -mios-simulator-version-min=9.0 -Xlinker -object_path_lto -Xlinker /Users/mac/Library/Developer/Xcode/DerivedData/Shopping-bffzrhylanxuelcazupfwylbgyoq/Build/Intermediates.noindex/Shopping.build/Debug-iphonesimulator/Shopping.build/Objects-normal/x86_64/Shopping_lto.o
-Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -ObjC -lCardIO -lPayPalMobile -lc++ -lopencv_core -lopencv_imgproc -framework AVFoundation -framework Accelerate -framework AudioToolbox -framework CoreLocation -framework
CoreMedia -framework CoreVideo -framework MessageUI -framework
MobileCoreServices -framework OpenGLES -framework QuartzCore
-framework Security -framework SystemConfiguration -framework UIKit -ObjC -lc++ -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/mac/Library/Developer/Xcode/DerivedData/Shopping-bffzrhylanxuelcazupfwylbgyoq/Build/Intermediates.noindex/Shopping.build/Debug-iphonesimulator/Shopping.build/Shopping.app-Simulated.xcent
/Users/mac/Library/Developer/Xcode/DerivedData/Shopping-bffzrhylanxuelcazupfwylbgyoq/Build/Products/Debug-iphonesimulator/libRCTBlob.a
/Users/mac/Library/Developer/Xcode/DerivedData/Shopping-bffzrhylanxuelcazupfwylbgyoq/Build/Products/Debug-iphonesimulator/libRCTAnimation.a
/Users/mac/Library/Developer/Xcode/DerivedData/Shopping-bffzrhylanxuelcazupfwylbgyoq/Build/Products/Debug-iphonesimulator/libReact.a
/Users/mac/Library/Developer/Xcode/DerivedData/Shopping-bffzrhylanxuelcazupfwylbgyoq/Build/Products/Debug-iphonesimulator/libRCTAnimation.a
/Users/mac/Library/Developer/Xcode/DerivedData/Shopping-bffzrhylanxuelcazupfwylbgyoq/Build/Products/Debug-iphonesimulator/libRCTActionSheet.a
/Users/mac/Library/Developer/Xcode/DerivedData/Shopping-bffzrhylanxuelcazupfwylbgyoq/Build/Products/Debug-iphonesimulator/libRCTGeolocation.a
/Users/mac/Library/Developer/Xcode/DerivedData/Shopping-bffzrhylanxuelcazupfwylbgyoq/Build/Products/Debug-iphonesimulator/libRCTImage.a
/Users/mac/Library/Developer/Xcode/DerivedData/Shopping-bffzrhylanxuelcazupfwylbgyoq/Build/Products/Debug-iphonesimulator/libRCTLinking.a
/Users/mac/Library/Developer/Xcode/DerivedData/Shopping-bffzrhylanxuelcazupfwylbgyoq/Build/Products/Debug-iphonesimulator/libRCTNetwork.a
/Users/mac/Library/Developer/Xcode/DerivedData/Shopping-bffzrhylanxuelcazupfwylbgyoq/Build/Products/Debug-iphonesimulator/libRCTSettings.a
/Users/mac/Library/Developer/Xcode/DerivedData/Shopping-bffzrhylanxuelcazupfwylbgyoq/Build/Products/Debug-iphonesimulator/libRCTText.a
/Users/mac/Library/Developer/Xcode/DerivedData/Shopping-bffzrhylanxuelcazupfwylbgyoq/Build/Products/Debug-iphonesimulator/libRCTVibration.a
/Users/mac/Library/Developer/Xcode/DerivedData/Shopping-bffzrhylanxuelcazupfwylbgyoq/Build/Products/Debug-iphonesimulator/libRCTWebSocket.a
-lRNImagePicker -lRNPaypalWrapper -lPods-Shopping -Xlinker -dependency_info -Xlinker /Users/mac/Library/Developer/Xcode/DerivedData/Shopping-bffzrhylanxuelcazupfwylbgyoq/Build/Intermediates.noindex/Shopping.build/Debug-iphonesimulator/Shopping.build/Objects-normal/x86_64/Shopping_dependency_info.dat
-o /Users/mac/Library/Developer/Xcode/DerivedData/Shopping-bffzrhylanxuelcazupfwylbgyoq/Build/Products/Debug-iphonesimulator/Shopping.app/Shopping
ld: library not found for -lPods-Shopping
clang: error: linker command failed with exit code 1 (use -v to see invocation)
how can I resolve these errors......
these are the installation instruction for the package do every step carefully.
npm install --save react-native-paypal-wrapper or yarn add
react-native-paypal-wrapper
react-native link react-native-paypal-wrapper
clone this repo ( You do not need all the components in this repo
you download selectives )
Add the PayPalMobile directory (containing several .h files and
libPayPalMobile.a) to your Xcode project. We recommend checking
"Copy items..." and selecting "Create groups...".
In your project's Build Settings (in the TARGETS section, not the
PROJECTS section):
add -lc++ -ObjC to Other Linker Flags
enable Enable Modules (C and Objective-C)
enable Link Frameworks Automatically
In your project's Build Phases, link your project with these
libraries. Weak linking for iOS versions back to 6.0 is supported.
Accelerate.framework
AudioToolbox.framework
AVFoundation.framework
CoreLocation.framework
CoreMedia.framework
MessageUI.framework
MobileCoreServices.framework
SystemConfiguration.framework
SafariServices.framework
Add the open source license acknowledgments from acknowledgments.md
to your app's acknowledgments.
In your app's Info.plist, add the following URL schemes to
LSApplicationQueriesSchemes:
com.paypal.ppclient.touch.v1
com.paypal.ppclient.touch.v2
org-appextension-feature-password-management
Note: These installation instructions were collected from react-native-paypal-wrapper and also as it suggested the paypal ios sdk documentation they were perfect for our projects

"libParseLib.a does not contain bitcode" error

I never had any problems when using CocoaPods up to this point (I used it a few times to integrate Parse into my iOS app). But this time I am puzzled by the message below.
When I previously used CocoaPods the project was containing only one target, this time it contains several. There may be something to be careful about, in such a case, that I don't know of. Anyway, here is the message I am getting:
ld: '..../MyApp/Pods/Parse/libParseLib.a(PFSQLiteDatabase.o)' does not contain bitcode.
You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE),
obtain an updated library from the vendor, or disable bitcode for this target.
for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I have tried to change the Enable Bitcode flag at various level, but whatever I do I keep getting the same error.
Has anyone had this kind of issue? Or knows what to do about it?
Note that this link is related to my question but it unfortunately does not provide me a useful answer.
Update: I add hereafter the full text I get in the logs under Xcode, in case it may help someone to see where the problem is:
Ld /Users/georgewhashington/Library/Developer/Xcode/DerivedData/MyApp-dsxizsrrgeilklkhdylflpsafjrd/Build/Products/Debug-iphoneos/Parse-framework/Parse.framework/Parse normal arm64
cd /Users/georgewhashington/Documents/iOS/MyApp/Pods
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 -dynamiclib -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.2.sdk -L/Users/georgewhashington/Library/Developer/Xcode/DerivedData/MyApp-dsxizsrrgeilklkhdylflpsafjrd/Build/Products/Debug-iphoneos/Parse-framework -L/Users/georgewhashington/Documents/iOS/MyApp/Pods/Parse -F/Users/georgewhashington/Library/Developer/Xcode/DerivedData/MyApp-dsxizsrrgeilklkhdylflpsafjrd/Build/Products/Debug-iphoneos/Parse-framework -F/Users/georgewhashington/Library/Developer/Xcode/DerivedData/MyApp-dsxizsrrgeilklkhdylflpsafjrd/Build/Products/Debug-iphoneos/Bolts-framework -filelist /Users/georgewhashington/Library/Developer/Xcode/DerivedData/MyApp-dsxizsrrgeilklkhdylflpsafjrd/Build/Intermediates/Pods.build/Debug-iphoneos/Parse-framework.build/Objects-normal/arm64/Parse.LinkFileList -install_name #rpath/Parse.framework/Parse -Xlinker -rpath -Xlinker #executable_path/Frameworks -Xlinker -rpath -Xlinker #loader_path/Frameworks -miphoneos-version-min=8.0 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/georgewhashington/Library/Developer/Xcode/DerivedData/MyApp-dsxizsrrgeilklkhdylflpsafjrd/Build/Intermediates/Pods.build/Debug-iphoneos/Parse-framework.build/Objects-normal/arm64/Parse_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -fembed-bitcode-marker -fobjc-arc -fobjc-link-runtime -ObjC -lParseLib -lsqlite3 -lz -framework AudioToolbox -framework CFNetwork -framework CoreGraphics -framework CoreLocation -framework QuartzCore -framework Security -framework StoreKit -framework SystemConfiguration -weak_framework Accounts -weak_framework Social -framework AudioToolbox -framework Bolts -framework CFNetwork -framework CoreGraphics -framework CoreLocation -framework Foundation -framework QuartzCore -framework Security -framework StoreKit -framework SystemConfiguration -single_module -compatibility_version 1 -current_version 1 -Xlinker -dependency_info -Xlinker /Users/georgewhashington/Library/Developer/Xcode/DerivedData/MyApp-dsxizsrrgeilklkhdylflpsafjrd/Build/Intermediates/Pods.build/Debug-iphoneos/Parse-framework.build/Objects-normal/arm64/Parse_dependency_info.dat -o /Users/georgewhashington/Library/Developer/Xcode/DerivedData/MyApp-dsxizsrrgeilklkhdylflpsafjrd/Build/Products/Debug-iphoneos/Parse-framework/Parse.framework/Parse
ld: '..../MyApp/Pods/Parse/libParseLib.a(PFSQLiteDatabase.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
My solution was to disable bitcode in the project, like this
everything works fine after.

Xcode Linker Error: File not found

I am currently using cocoapods in my Xcode Project to create a google sign in button for my app, and after going through the tutorial steps again, there are still errors showing up on build. Here are the error messages that are showing up on build. Would appreciate any help in fixing this problem.
Short Error Message(At the end of the console error message)
ld: file not found: /Users/tarunaarora/Desktop/GunnOracleApplication/Pods/GoogleUtilities/Libraries/libGTM_NSData+zlib_external.a
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Full Error Message(error message above the short error message):
Ld /Users/tarunaarora/Library/Developer/Xcode/DerivedData/GunnOracleApplication-epkumjpjfmvimzansuewkghneyzh/Build/Products/Debug-iphonesimulator/GunnOracleApplication.app/GunnOracleApplication normal x86_64
cd /Users/tarunaarora/Desktop/GunnOracleApplication
export IPHONEOS_DEPLOYMENT_TARGET=10.2
export PATH="/Users/tarunaarora/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Users/tarunaarora/Downloads/Xcode-beta.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Users/tarunaarora/Downloads/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Users/tarunaarora/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.2.sdk -L/Users/tarunaarora/Library/Developer/Xcode/DerivedData/GunnOracleApplication-epkumjpjfmvimzansuewkghneyzh/Build/Products/Debug-iphonesimulator -L/Users/tarunaarora/Desktop/GunnOracleApplication/Pods/Firebase -F/Users/tarunaarora/Library/Developer/Xcode/DerivedData/GunnOracleApplication-epkumjpjfmvimzansuewkghneyzh/Build/Products/Debug-iphonesimulator -F/Users/tarunaarora/Library/Developer/Xcode/DerivedData/GunnOracleApplication-epkumjpjfmvimzansuewkghneyzh/Build/Products/Debug-iphonesimulator/GTMOAuth2 -F/Users/tarunaarora/Library/Developer/Xcode/DerivedData/GunnOracleApplication-epkumjpjfmvimzansuewkghneyzh/Build/Products/Debug-iphonesimulator/GTMSessionFetcher -F/Users/tarunaarora/Library/Developer/Xcode/DerivedData/GunnOracleApplication-epkumjpjfmvimzansuewkghneyzh/Build/Products/Debug-iphonesimulator/GoogleToolboxForMac -F/Users/tarunaarora/Desktop/GunnOracleApplication/Pods/FirebaseAnalytics/Frameworks/frameworks -F/Users/tarunaarora/Desktop/GunnOracleApplication/Pods/FirebaseCore/Frameworks/frameworks -F/Users/tarunaarora/Desktop/GunnOracleApplication/Pods/FirebaseInstanceID/Frameworks/frameworks -F/Users/tarunaarora/Desktop/GunnOracleApplication/Pods/Google/Frameworks -F/Users/tarunaarora/Desktop/GunnOracleApplication/Pods/GoogleAppUtilities/Frameworks/frameworks -F/Users/tarunaarora/Desktop/GunnOracleApplication/Pods/GoogleInterchangeUtilities/Frameworks/frameworks -F/Users/tarunaarora/Desktop/GunnOracleApplication/Pods/GoogleSignIn/Frameworks -F/Users/tarunaarora/Desktop/GunnOracleApplication/Pods/GoogleSymbolUtilities/Frameworks/frameworks -filelist /Users/tarunaarora/Library/Developer/Xcode/DerivedData/GunnOracleApplication-epkumjpjfmvimzansuewkghneyzh/Build/Intermediates/GunnOracleApplication.build/Debug-iphonesimulator/GunnOracleApplication.build/Objects-normal/x86_64/GunnOracleApplication.LinkFileList -Xlinker -rpath -Xlinker #executable_path/Frameworks -Xlinker -rpath -Xlinker #loader_path/Frameworks -Xlinker -rpath -Xlinker #executable_path/Frameworks -mios-simulator-version-min=10.2 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/tarunaarora/Library/Developer/Xcode/DerivedData/GunnOracleApplication-epkumjpjfmvimzansuewkghneyzh/Build/Intermediates/GunnOracleApplication.build/Debug-iphonesimulator/GunnOracleApplication.build/Objects-normal/x86_64/GunnOracleApplication_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fobjc-link-runtime -L/Users/tarunaarora/Downloads/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator -Xlinker -add_ast_path -Xlinker /Users/tarunaarora/Library/Developer/Xcode/DerivedData/GunnOracleApplication-epkumjpjfmvimzansuewkghneyzh/Build/Intermediates/GunnOracleApplication.build/Debug-iphonesimulator/GunnOracleApplication.build/Objects-normal/x86_64/GunnOracleApplication.swiftmodule -ObjC -lc++ -lsqlite3 -lstdc++ -lz -framework AddressBook -framework AssetsLibrary -framework CoreFoundation -framework CoreLocation -framework CoreMotion -framework CoreText -framework FirebaseAnalytics -framework FirebaseCore -framework FirebaseInstanceID -framework GGLCore -framework GGLSignIn -framework GTMOAuth2 -framework GTMSessionFetcher -framework GoogleAppUtilities -framework GoogleInterchangeUtilities -framework GoogleSignIn -framework GoogleSymbolUtilities -framework GoogleToolboxForMac -framework MessageUI -framework SafariServices -framework Security -framework StoreKit -framework SystemConfiguration -lGGLCore -lGGLSignIn -lGIPNSURL+FIFE_external -lGSDK_Overload_external -lGTMOAuth2_external_external -lGTMOAuth2_internal_external -lGTMSessionFetcher_core_external -lGTMSessionFetcher_full_external -lGTMStackTrace_external -lGTM_AddressBook_external -lGTM_DebugUtils_external -lGTM_GTMURLBuilder_external -lGTM_KVO_external -lGTM_NSData+zlib_external -lGTM_NSDictionary+URLArguments_external -lGTM_NSScannerJSON_external -lGTM_NSStringHTML_external -lGTM_NSStringXML_external -lGTM_Regex_external -lGTM_RoundedRectPath_external -lGTM_StringEncoding_external -lGTM_SystemVersion_external -lGTM_UIFont+LineHeight_external -lGTM_core_external -lGTM_iPhone_external -lOpenInChrome_external -lProtocolBuffers_external -lSignIn_external -lc++ -lsqlite3 -lstdc++ -lz -framework AddressBook -framework AssetsLibrary -framework CoreFoundation -framework CoreGraphics -framework CoreLocation -framework CoreMotion -framework CoreText -framework FirebaseAnalytics -framework FirebaseCore -framework FirebaseInstanceID -framework GoogleToolboxForMac -framework MessageUI -framework SafariServices -framework Security -framework StoreKit -framework SystemConfiguration -force_load /Users/tarunaarora/Desktop/GunnOracleApplication/Pods/GoogleUtilities/Libraries/libGTM_NSData+zlib_external.a -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/tarunaarora/Library/Developer/Xcode/DerivedData/GunnOracleApplication-epkumjpjfmvimzansuewkghneyzh/Build/Intermediates/GunnOracleApplication.build/Debug-iphonesimulator/GunnOracleApplication.build/GunnOracleApplication.app.xcent -framework Pods_GunnOracleApplication -Xlinker -dependency_info -Xlinker /Users/tarunaarora/Library/Developer/Xcode/DerivedData/GunnOracleApplication-epkumjpjfmvimzansuewkghneyzh/Build/Intermediates/GunnOracleApplication.build/Debug-iphonesimulator/GunnOracleApplication.build/Objects-normal/x86_64/GunnOracleApplication_dependency_info.dat -o /Users/tarunaarora/Library/Developer/Xcode/DerivedData/GunnOracleApplication-epkumjpjfmvimzansuewkghneyzh/Build/Products/Debug-iphonesimulator/GunnOracleApplication.app/GunnOracleApplication
This is what my Xcode Project Podfile document and Pods show up like:
I am also currently using Xcode 8.2 beta
EDIT:
At the end I have including my solution as to what I did to fix the problem since most of the other ones had not worked. Feel free to look at the solution.
In your podfile, notice the difference between ` to '.
Once this is corrected, you can:
a. Clean the project (product -> clean)
b. Close XCode
c. Run pod install
d. Open yourProjectName.xcworkspace
Open Build Settings
Go to Framework Search Paths
This inherited & Project Directory will cause automatically detection from Pods, and it will not more create problem for you. Try to do so it will automatically detect the pod. Might be this can help
You should change the scheme name. Delete old scheme and add new one!
You can autocreate schemes for your targets by going to Product > Scheme > Manage Schemes and pressing "Autocreate Schemes Now"
Reference : this so post
After reading the solutions above, none of them had worked for me, so I started experimenting myself to see if there were any other solutions to this problem.
Here are the steps that had led me to solving this problem:
Recreating the Project. (I copied the files I needed and left out the ones I didn't need, so I only copied the Main.storyboard and Assets files)
Installing the Pods correctly. (I went through the tutorial I was using again and made sure I was installing the same exact pods he was installing. The project builded without any errors.)
Coding the ViewController.swift and Appdelegate files. (I watched the tutorial again, and carefully re-wrote the code that he was writing in the tutorial)
Building the project and understanding the errors. (I built the project using the correct scheme settings and then I had went through any errors shown in the console, and corrected them.) All errors that I had encountered, had solutions in the tutorial.
Now the project has been successfully created without any errors!

Updated XCode from 7.1.1 to 7.2 causes warnings and build errors

I updated my XCode to 7.2 yesterday from 7.1.1 in order to have the new iOS 9.2 SDK. I didn't make any changes; still I got one warning stating this:
ld: warning: directory not found for option '-F/Users/andre/Privat/Prosjekter/Swift/my-app/My-app/build/Debug-iphoneos'
Long text:
Ld /Users/andre/Library/Developer/Xcode/DerivedData/My-app-fqeokpwxllwqeughpoprzldbnhiu/Build/Products/Debug-iphonesimulator/My-app.app/My-app normal x86_64
cd /Users/andre/Privat/Prosjekter/Swift/My-app/My-app
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.2.sdk
-L/Users/andre/Library/Developer/Xcode/DerivedData/My-app-fqeokpwxllwqeughpoprzldbnhiu/Build/Products/Debug-iphonesimulator -F/Users/andre/Library/Developer/Xcode/DerivedData/My-app-fqeokpwxllwqeughpoprzldbnhiu/Build/Products/Debug-iphonesimulator -F/Users/andre/Privat/Prosjekter/Swift/My-app/My-app/Pods/GoogleMaps/Frameworks
-F/Users/andre/Privat/Prosjekter/Swift/My-app/My-app/build/Debug-iphoneos
-filelist /Users/andre/Library/Developer/Xcode/DerivedData/My-app-fqeokpwxllwqeughpoprzldbnhiu/Build/Intermediates/My-app.build/Debug-iphonesimulator/My-app.build/Objects-normal/x86_64/My-app.LinkFileList
-Xlinker -rpath -Xlinker #executable_path/Frameworks -Xlinker -rpath -Xlinker #loader_path/Frameworks -Xlinker -rpath -Xlinker #executable_path/Frameworks -mios-simulator-version-min=9.0 -Xlinker
-objc_abi_version -Xlinker 2 -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 -framework youtube_ios_player_helper -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator
-Xlinker -add_ast_path -Xlinker /Users/andre/Library/Developer/Xcode/DerivedData/My-app-fqeokpwxllwqeughpoprzldbnhiu/Build/Intermediates/My-app.build/Debug-iphonesimulator/My-app.build/Objects-normal/x86_64/Wax_room.swiftmodule
-framework AddressBook -framework MapKit -framework CoreLocation -framework Pods -Xlinker -dependency_info -Xlinker /Users/andre/Library/Developer/Xcode/DerivedData/My-app-fqeokpwxllwqeughpoprzldbnhiu/Build/Intermediates/My-app.build/Debug-iphonesimulator/My-app.build/Objects-normal/x86_64/My-app_dependency_info.dat
-o /Users/andre/Library/Developer/Xcode/DerivedData/My-app-fqeokpwxllwqeughpoprzldbnhiu/Build/Products/Debug-iphonesimulator/My-app.app/My-app
What is wrong? I don't understand the error message.
This is quite a common problem, I'm afraid. If you've already tried cleaning your project using Shift+Alt+Cmd+K and restarting Xcode, you might need to do the following:
Go to your project in the navigator pane (the bit on the left) then choose your target.
Click on the Build Settings tab.
Search for "Library" until you find Library Search Paths, then delete whatever you see there. Same goes for the Framework Search Paths. Lovely.
Now try again.
Update: See Michaël's comment below that you should check the frameworks path too – hurray for Xcode's almost impenetrable build system! :)
I had this problem yesterday and I solved it by removing and adding new scheme.
Here is how: link.

Duplicated symbols with static library(.a) and dynamic library (.dylib)

In my iOS project, the libraries libbaidumapapi.a and libPayPalMPL.a are being used.
The project can be correctly built but it signals an exception at runtime.
While debugging the problem, I found that its cause is because library libPayPalMPL.a invokes the XMLFreeDoc function inside library libbaidumapapi.a, but it should be invoking the XMLFreeDoc function inside xml2 dynamic library.
I don't have source codes of both libraries. When I check the libbaidumapapi.a, I found out that it is archived with minixml.o and deflate.o with XMLFreeDoc and deflate that may conflict with libPayPalMPL.a.
libPayPalMPL.a library that depends on two dynamic libraries: xml2 and zlib.
I can I fix this crash issue? I already use force_load before libbaidumapapi.a.
The following is the link command, just in case it is needed.
Ld /Users/tony/Library/Developer/Xcode/DerivedData/travel-aaytjupqtzenxvaepekwcapqqzpv/Build/Products/Debug-iphonesimulator/travel.app/travel normal i386
cd /Users/tony/Documents/temp/mapapp
setenv IPHONEOS_DEPLOYMENT_TARGET 6.1
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/iPhoneSimulator6.1.sdk -L/Users/tony/Library/Developer/Xcode/DerivedData/itravel-aaytjupqtzenxvaepekwcapqqzpv/Build/Products/Debug-iphonesimulator -L/Users/tony/Documents/temp/mapapp/libs/Release-iphonesimulator -L/Users/tony/Documents/temp/mapapp/libs/Release-iphoneos -L/Users/tony/Documents/temp/mapapp/libs/Release-iphonesimulator -L/Users/tony/Documents/temp/mapapp/libs -L/Users/tony/Documents/temp/mapapp/libWeiboSDK -L/Users/tony/Documents/temp/mapapp/Library -F/Users/tony/Library/Developer/Xcode/DerivedData/travel-aaytjupqtzenxvaepekwcapqqzpv/Build/Products/Debug-iphonesimulator -filelist /Users/tony/Library/Developer/Xcode/DerivedData/travel-aaytjupqtzenxvaepekwcapqqzpv/Build/Intermediates/travel.build/Debug-iphonesimulator/travel.build/Objects-normal/i386/travel.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -force_load /Users/tony/Documents/temp/mapapp/libs/Release-iphonesimulator/libbaidumapapi.a -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=6.1 -lz -lxml2 -framework Security -framework SystemConfiguration -framework OpenGLES -framework QuartzCore -lc++ -lopts -framework MapKit -framework CoreLocation -framework UIKit -framework Foundation -framework CoreGraphics -lPayPalMPL -lWeiboSDK -o /Users/tony/Library/Developer/Xcode/DerivedData/travel-aaytjupqtzenxvaepekwcapqqzpv/Build/Products/Debug-iphonesimulator/travel.app/travel*
MPL has been deprecated. Instead, it's recommended that you use the iOS SDK: https://github.com/paypal/PayPal-iOS-SDK

Resources