Trouble Building Ionic 1 iOS App

I am trying to build this Ionic 1.x project in iOS using XCode 8 and iOS10. I have installed everything correctly and reinstalled the platform and plugins several times. I keep getting the following error display when I build the app. This is the first time I have ever seen this error and Google searches have turned up empty. Does anybody have any insight or possible solutions for this?

Ld /Users/ryanminor/Library/Developer/Xcode/DerivedData/DATINGAPP-bpfxnegwyinbazfokzwmcdqoeqic/Build/Products/Debug-iphonesimulator/DATINGAPP.app/DATINGAPP normal x86_64
cd /Users/ryanminor/Code/golf-ionic/platforms/ios
export IPHONEOS_DEPLOYMENT_TARGET=10.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.2.sdk -L/Users/ryanminor/Library/Developer/Xcode/DerivedData/DATINGAPP-bpfxnegwyinbazfokzwmcdqoeqic/Build/Products/Debug-iphonesimulator -F/Users/ryanminor/Library/Developer/Xcode/DerivedData/DATINGAPP-bpfxnegwyinbazfokzwmcdqoeqic/Build/Products/Debug-iphonesimulator -filelist /Users/ryanminor/Library/Developer/Xcode/DerivedData/DATINGAPP-bpfxnegwyinbazfokzwmcdqoeqic/Build/Intermediates/DATINGAPP.build/Debug-iphonesimulator/DATINGAPP.build/Objects-normal/x86_64/DATINGAPP.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -mios-simulator-version-min=10.0 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/ryanminor/Library/Developer/Xcode/DerivedData/DATINGAPP-bpfxnegwyinbazfokzwmcdqoeqic/Build/Intermediates/DATINGAPP.build/Debug-iphonesimulator/DATINGAPP.build/Objects-normal/x86_64/DATINGAPP_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -ObjC -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/ryanminor/Library/Developer/Xcode/DerivedData/DATINGAPP-bpfxnegwyinbazfokzwmcdqoeqic/Build/Intermediates/DATINGAPP.build/Debug-iphonesimulator/DATINGAPP.build/DATINGAPP.app.xcent /Users/ryanminor/Library/Developer/Xcode/DerivedData/DATINGAPP-bpfxnegwyinbazfokzwmcdqoeqic/Build/Products/Debug-iphonesimulator/libCordova.a -weak_framework ImageIO -framework CoreLocation -framework AVFoundation -Xlinker -dependency_info -Xlinker /Users/ryanminor/Library/Developer/Xcode/DerivedData/DATINGAPP-bpfxnegwyinbazfokzwmcdqoeqic/Build/Intermediates/DATINGAPP.build/Debug-iphonesimulator/DATINGAPP.build/Objects-normal/x86_64/DATINGAPP_dependency_info.dat -o /Users/ryanminor/Library/Developer/Xcode/DerivedData/DATINGAPP-bpfxnegwyinbazfokzwmcdqoeqic/Build/Products/Debug-iphonesimulator/DATINGAPP.app/DATINGAPP

duplicate symbol _kCDVAssetsLibraryPrefix in:
/Users/ryanminor/Library/Developer/Xcode/DerivedData/DATINGAPP-bpfxnegwyinbazfokzwmcdqoeqic/Build/Intermediates/DATINGAPP.build/Debug-iphonesimulator/DATINGAPP.build/Objects-normal/x86_64/CDVFileTransfer.o
/Users/ryanminor/Library/Developer/Xcode/DerivedData/DATINGAPP-bpfxnegwyinbazfokzwmcdqoeqic/Build/Intermediates/DATINGAPP.build/Debug-iphonesimulator/DATINGAPP.build/Objects-normal/x86_64/CDVCapture.o
duplicate symbol _kCDVFilesystemURLPrefix in:
/Users/ryanminor/Library/Developer/Xcode/DerivedData/DATINGAPP-bpfxnegwyinbazfokzwmcdqoeqic/Build/Intermediates/DATINGAPP.build/Debug-iphonesimulator/DATINGAPP.build/Objects-normal/x86_64/CDVFileTransfer.o
/Users/ryanminor/Library/Developer/Xcode/DerivedData/DATINGAPP-bpfxnegwyinbazfokzwmcdqoeqic/Build/Intermediates/DATINGAPP.build/Debug-iphonesimulator/DATINGAPP.build/Objects-normal/x86_64/CDVCapture.o
duplicate symbol _kCDVAssetsLibraryPrefix in:
/Users/ryanminor/Library/Developer/Xcode/DerivedData/DATINGAPP-bpfxnegwyinbazfokzwmcdqoeqic/Build/Intermediates/DATINGAPP.build/Debug-iphonesimulator/DATINGAPP.build/Objects-normal/x86_64/CDVFileTransfer.o
/Users/ryanminor/Library/Developer/Xcode/DerivedData/DATINGAPP-bpfxnegwyinbazfokzwmcdqoeqic/Build/Intermediates/DATINGAPP.build/Debug-iphonesimulator/DATINGAPP.build/Objects-normal/x86_64/CDVFile.o
duplicate symbol _kCDVFilesystemURLPrefix in:
/Users/ryanminor/Library/Developer/Xcode/DerivedData/DATINGAPP-bpfxnegwyinbazfokzwmcdqoeqic/Build/Intermediates/DATINGAPP.build/Debug-iphonesimulator/DATINGAPP.build/Objects-normal/x86_64/CDVFileTransfer.o
/Users/ryanminor/Library/Developer/Xcode/DerivedData/DATINGAPP-bpfxnegwyinbazfokzwmcdqoeqic/Build/Intermediates/DATINGAPP.build/Debug-iphonesimulator/DATINGAPP.build/Objects-normal/x86_64/CDVFile.o
duplicate symbol _kCDVAssetsLibraryPrefix in:
/Users/ryanminor/Library/Developer/Xcode/DerivedData/DATINGAPP-bpfxnegwyinbazfokzwmcdqoeqic/Build/Intermediates/DATINGAPP.build/Debug-iphonesimulator/DATINGAPP.build/Objects-normal/x86_64/CDVFileTransfer.o
/Users/ryanminor/Library/Developer/Xcode/DerivedData/DATINGAPP-bpfxnegwyinbazfokzwmcdqoeqic/Build/Intermediates/DATINGAPP.build/Debug-iphonesimulator/DATINGAPP.build/Objects-normal/x86_64/CDVLocalFilesystem.o
duplicate symbol _kCDVFilesystemURLPrefix in:
/Users/ryanminor/Library/Developer/Xcode/DerivedData/DATINGAPP-bpfxnegwyinbazfokzwmcdqoeqic/Build/Intermediates/DATINGAPP.build/Debug-iphonesimulator/DATINGAPP.build/Objects-normal/x86_64/CDVFileTransfer.o
/Users/ryanminor/Library/Developer/Xcode/DerivedData/DATINGAPP-bpfxnegwyinbazfokzwmcdqoeqic/Build/Intermediates/DATINGAPP.build/Debug-iphonesimulator/DATINGAPP.build/Objects-normal/x86_64/CDVLocalFilesystem.o
duplicate symbol _kCDVAssetsLibraryPrefix in:
/Users/ryanminor/Library/Developer/Xcode/DerivedData/DATINGAPP-bpfxnegwyinbazfokzwmcdqoeqic/Build/Intermediates/DATINGAPP.build/Debug-iphonesimulator/DATINGAPP.build/Objects-normal/x86_64/CDVFileTransfer.o
/Users/ryanminor/Library/Developer/Xcode/DerivedData/DATINGAPP-bpfxnegwyinbazfokzwmcdqoeqic/Build/Intermediates/DATINGAPP.build/Debug-iphonesimulator/DATINGAPP.build/Objects-normal/x86_64/CDVAssetLibraryFilesystem.o
duplicate symbol _kCDVFilesystemURLPrefix in:
/Users/ryanminor/Library/Developer/Xcode/DerivedData/DATINGAPP-bpfxnegwyinbazfokzwmcdqoeqic/Build/Intermediates/DATINGAPP.build/Debug-iphonesimulator/DATINGAPP.build/Objects-normal/x86_64/CDVFileTransfer.o
/Users/ryanminor/Library/Developer/Xcode/DerivedData/DATINGAPP-bpfxnegwyinbazfokzwmcdqoeqic/Build/Intermediates/DATINGAPP.build/Debug-iphonesimulator/DATINGAPP.build/Objects-normal/x86_64/CDVAssetLibraryFilesystem.o
ld: 8 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Here are two screenshots of the compile sources are and also the linker flags area. I removed the Obj-C linker flags and rebuilt but it still failed with the same error as above.

Are you downloading the latest plugin?
Can you try this:
In file “CDVFile.h”, modify the following lines to below:
extern NSString* const kCDVAssetsLibraryPrefix;
extern NSString* const kCDVFilesystemURLPrefix;

Thank you for the reply. I did what you said, and now the app builds but it looks like it crashes. Here is the output log:

objc[50541]: Class PLBuildVersion is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/AssetsLibraryServices.framework/AssetsLibraryServices (0x112051998) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/PhotoLibraryServices.framework/PhotoLibraryServices (0x113877880). One of the two will be used. Which one is undefined.
2017-02-13 23:21:20.090 DATINGAPP[50541:30873734] *** Terminating app due to uncaught exception ‘NSUnknownKeyException’, reason: ‘[<UIApplication 0x7f9702e009e0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key view.’
*** First throw call stack:
(
0 CoreFoundation 0x0000000109a89d4b __exceptionPreprocess + 171
1 libobjc.A.dylib 0x00000001094c221e objc_exception_throw + 48
2 CoreFoundation 0x0000000109a89c99 -[NSException raise] + 9
3 Foundation 0x0000000108fd09df -[NSObject(NSKeyValueCoding) setValue:forKey:] + 291
4 UIKit 0x000000010acab79e -[UIRuntimeOutletConnection connect] + 109
5 CoreFoundation 0x0000000109a2e9e0 -[NSArray makeObjectsPerformSelector:] + 256
6 UIKit 0x000000010acaa122 -[UINib instantiateWithOwner:options:] + 1867
7 UIKit 0x000000010acac3bb -[NSBundle(UINSBundleAdditions) loadNibNamed:owner:options:] + 223
8 UIKit 0x000000010a89c350 -[UIApplication _loadMainNibFileNamed:bundle:] + 75
9 UIKit 0x000000010a89c947 -[UIApplication _loadMainInterfaceFile] + 260
10 UIKit 0x000000010a89afa8 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1406
11 UIKit 0x000000010a89826d -[UIApplication workspaceDidEndTransaction:] + 188
12 FrontBoardServices 0x000000010fc7d6cb FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK + 24
13 FrontBoardServices 0x000000010fc7d544 -[FBSSerialQueue _performNext] + 189
14 FrontBoardServices 0x000000010fc7d8cd -[FBSSerialQueue _performNextFromRunLoopSource] + 45
15 CoreFoundation 0x0000000109a2e761 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 17
16 CoreFoundation 0x0000000109a1398c __CFRunLoopDoSources0 + 556
17 CoreFoundation 0x0000000109a12e76 __CFRunLoopRun + 918
18 CoreFoundation 0x0000000109a12884 CFRunLoopRunSpecific + 420
19 UIKit 0x000000010a896aea -[UIApplication _run] + 434
20 UIKit 0x000000010a89cc68 UIApplicationMain + 159
21 DATINGAPP 0x000000010835bb51 main + 65
22 libdyld.dylib 0x000000010cfa468d start + 1
23 ??? 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)

And here is a screenshot of my XCode after the crash:
image

Oh sorry about that. This kind of errors happen in native apps but never seen in ionic.
What’s your ionic version, have you updated it to the latest version

This is what I get for versioning information:

I just updated Ionic to 1.3.2 and the same thing happens. The emulator opens up to the splash screen and it just sits there. I have no problem opening up the repository to you if you want to have a look. I’m really stuck and my client is waiting patiently for this to be fixed.

if you are able to open the app and its not navigating then there should be something in Console as error ?

Here is the output from the console:

objc[86862]: Class PLBuildVersion is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/AssetsLibraryServices.framework/AssetsLibraryServices (0x111a38998) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/PhotoLibraryServices.framework/PhotoLibraryServices (0x11185a880). One of the two will be used. Which one is undefined.
2017-02-14 18:41:19.676 DATINGAPP[86862:31092349] *** Terminating app due to uncaught exception ‘NSUnknownKeyException’, reason: ‘[<UIApplication 0x7fe842c00750> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key view.’
*** First throw call stack:
(
0 CoreFoundation 0x0000000107baad4b __exceptionPreprocess + 171
1 libobjc.A.dylib 0x00000001075e321e objc_exception_throw + 48
2 CoreFoundation 0x0000000107baac99 -[NSException raise] + 9
3 Foundation 0x00000001070f19df -[NSObject(NSKeyValueCoding) setValue:forKey:] + 291
4 UIKit 0x0000000108dcc79e -[UIRuntimeOutletConnection connect] + 109
5 CoreFoundation 0x0000000107b4f9e0 -[NSArray makeObjectsPerformSelector:] + 256
6 UIKit 0x0000000108dcb122 -[UINib instantiateWithOwner:options:] + 1867
7 UIKit 0x0000000108dcd3bb -[NSBundle(UINSBundleAdditions) loadNibNamed:owner:options:] + 223
8 UIKit 0x00000001089bd350 -[UIApplication _loadMainNibFileNamed:bundle:] + 75
9 UIKit 0x00000001089bd947 -[UIApplication _loadMainInterfaceFile] + 260
10 UIKit 0x00000001089bbfa8 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1406
11 UIKit 0x00000001089b926d -[UIApplication workspaceDidEndTransaction:] + 188
12 FrontBoardServices 0x000000010de2a6cb FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK + 24
13 FrontBoardServices 0x000000010de2a544 -[FBSSerialQueue _performNext] + 189
14 FrontBoardServices 0x000000010de2a8cd -[FBSSerialQueue _performNextFromRunLoopSource] + 45
15 CoreFoundation 0x0000000107b4f761 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 17
16 CoreFoundation 0x0000000107b3498c __CFRunLoopDoSources0 + 556
17 CoreFoundation 0x0000000107b33e76 __CFRunLoopRun + 918
18 CoreFoundation 0x0000000107b33884 CFRunLoopRunSpecific + 420
19 UIKit 0x00000001089b7aea -[UIApplication _run] + 434
20 UIKit 0x00000001089bdc68 UIApplicationMain + 159
21 DATINGAPP 0x000000010647cb51 main + 65
22 libdyld.dylib 0x000000010b0c568d start + 1
23 ??? 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)

Ok this is going nowhere.
Can you create a blank app, and add platform ios. Use sudo

Okay, I built a new blank app, added iOS, built it, and can run it fine in the XCode emulator. I should also mention that this particular app I am having issues with builds fine for Android. I’m not sure if that helps at all.

hello i am having a similar issue i ios 10.3 would this fix the asset-library error