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.