Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228595

Just updated Xcode to 7 and attempting to build app in iOS9; build errors

$
0
0

To resolve the first error I had, regarding supportedInterfaceOrientationsForWindow, it turns out to be a return value data type issue.

Originally, I had this:

 - (NSUInteger)application:(UIApplication*)application supportedInterfaceOrientationsForWindow:(UIWindow*)window
 {
     // iPhone doesn't support upside down by default, while the iPad does.  Override to allow all orientations always, and let the root view controller decide what's allowed (the supported orientations mask gets intersected).
     NSUInteger supportedInterfaceOrientations = (1 << UIInterfaceOrientationPortrait) | (1 << UIInterfaceOrientationLandscapeLeft) | (1 << UIInterfaceOrientationLandscapeRight) | (1 << UIInterfaceOrientationPortraitUpsideDown);

     return supportedInterfaceOrientations;
}

I changed it to this:

#if __IPHONE_OS_VERSION_MAX_ALLOWED < 90000
- (NSUInteger)application:(UIApplication*)application supportedInterfaceOrientationsForWindow:(UIWindow*)window
#else
- (UIInterfaceOrientationMask)application:(UIApplication*)application supportedInterfaceOrientationsForWindow:(UIWindow*)window
#endif
{
    // iPhone doesn't support upside down by default, while the iPad does.  Override to allow all orientations always, and let the root view controller decide what's allowed (the supported orientations mask gets intersected).
    NSUInteger supportedInterfaceOrientations = (1 << UIInterfaceOrientationPortrait) | (1 << UIInterfaceOrientationLandscapeLeft) | (1 << UIInterfaceOrientationLandscapeRight) | (1 << UIInterfaceOrientationPortraitUpsideDown);

    return supportedInterfaceOrientations;
}

And the corresponding errors were gone.

Here is what remains for me to troubleshoot:

Ld /Users/calebfaruki/Library/Developer/Xcode/DerivedData/Motorino-gpuhtgiqcqpphkerxucftzxhcxeh/Build/Intermediates/Motorino.build/Debug-iphonesimulator/Motorino.build/Objects-normal/i386/Motorino normal i386
    cd /Users/calebfaruki/Documents/Motorino/motorino/platforms/ios
    export IPHONEOS_DEPLOYMENT_TARGET=6.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.0.sdk -L/Users/calebfaruki/Library/Developer/Xcode/DerivedData/Motorino-gpuhtgiqcqpphkerxucftzxhcxeh/Build/Products/Debug-iphonesimulator -F/Users/calebfaruki/Library/Developer/Xcode/DerivedData/Motorino-gpuhtgiqcqpphkerxucftzxhcxeh/Build/Products/Debug-iphonesimulator -FMotorino/Plugins/cordova-plugin-webserver -filelist /Users/calebfaruki/Library/Developer/Xcode/DerivedData/Motorino-gpuhtgiqcqpphkerxucftzxhcxeh/Build/Intermediates/Motorino.build/Debug-iphonesimulator/Motorino.build/Objects-normal/i386/Motorino.LinkFileList -mios-simulator-version-min=6.0 -Xlinker -objc_abi_version -Xlinker 2 -weak_framework CoreFoundation -weak_framework UIKit -weak_framework AVFoundation -weak_framework CoreMedia -weak-lSystem -ObjC -fobjc-arc -fobjc-link-runtime -framework AssetsLibrary /Users/calebfaruki/Library/Developer/Xcode/DerivedData/Motorino-gpuhtgiqcqpphkerxucftzxhcxeh/Build/Products/Debug-iphonesimulator/libCordova.a -framework CoreGraphics -framework MobileCoreServices -framework GCDWebServer -lz -framework CFNetwork -framework SystemConfiguration -framework CoreLocation -Xlinker -dependency_info -Xlinker /Users/calebfaruki/Library/Developer/Xcode/DerivedData/Motorino-gpuhtgiqcqpphkerxucftzxhcxeh/Build/Intermediates/Motorino.build/Debug-iphonesimulator/Motorino.build/Objects-normal/i386/Motorino_dependency_info.dat -o /Users/calebfaruki/Library/Developer/Xcode/DerivedData/Motorino-gpuhtgiqcqpphkerxucftzxhcxeh/Build/Intermediates/Motorino.build/Debug-iphonesimulator/Motorino.build/Objects-normal/i386/Motorino

ld: warning: ignoring file /Users/calebfaruki/Library/Developer/Xcode/DerivedData/Motorino-gpuhtgiqcqpphkerxucftzxhcxeh/Build/Products/Debug-iphonesimulator/libCordova.a, file was built for archive which is not the architecture being linked (i386): /Users/calebfaruki/Library/Developer/Xcode/DerivedData/Motorino-gpuhtgiqcqpphkerxucftzxhcxeh/Build/Products/Debug-iphonesimulator/libCordova.a
ld: warning: object file (Motorino/Plugins/cordova-plugin-webserver/GCDWebServer.framework/GCDWebServer(GCDWebServerRequest.o)) was built for newer iOS version (8.3) than being linked (6.0)
ld: warning: object file (Motorino/Plugins/cordova-plugin-webserver/GCDWebServer.framework/GCDWebServer(GCDWebServerURLEncodedFormRequest.o)) was built for newer iOS version (8.3) than being linked (6.0)
ld: warning: object file (Motorino/Plugins/cordova-plugin-webserver/GCDWebServer.framework/GCDWebServer(GCDWebServerDataRequest.o)) was built for newer iOS version (8.3) than being linked (6.0)
ld: warning: object file (Motorino/Plugins/cordova-plugin-webserver/GCDWebServer.framework/GCDWebServer(GCDWebServerMultiPartFormRequest.o)) was built for newer iOS version (8.3) than being linked (6.0)
ld: warning: object file (Motorino/Plugins/cordova-plugin-webserver/GCDWebServer.framework/GCDWebServer(GCDWebServerConnection.o)) was built for newer iOS version (8.3) than being linked (6.0)
ld: warning: object file (Motorino/Plugins/cordova-plugin-webserver/GCDWebServer.framework/GCDWebServer(GCDWebServerFileRequest.o)) was built for newer iOS version (8.3) than being linked (6.0)
ld: warning: object file (Motorino/Plugins/cordova-plugin-webserver/GCDWebServer.framework/GCDWebServer(GCDWebServerResponse.o)) was built for newer iOS version (8.3) than being linked (6.0)
ld: warning: object file (Motorino/Plugins/cordova-plugin-webserver/GCDWebServer.framework/GCDWebServer(GCDWebServerFileResponse.o)) was built for newer iOS version (8.3) than being linked (6.0)
ld: warning: object file (Motorino/Plugins/cordova-plugin-webserver/GCDWebServer.framework/GCDWebServer(GCDWebServerDataResponse.o)) was built for newer iOS version (8.3) than being linked (6.0)
ld: warning: object file (Motorino/Plugins/cordova-plugin-webserver/GCDWebServer.framework/GCDWebServer(GCDWebServer.o)) was built for newer iOS version (8.3) than being linked (6.0)
ld: warning: object file (Motorino/Plugins/cordova-plugin-webserver/GCDWebServer.framework/GCDWebServer(GCDWebServerErrorResponse.o)) was built for newer iOS version (8.3) than being linked (6.0)
ld: warning: object file (Motorino/Plugins/cordova-plugin-webserver/GCDWebServer.framework/GCDWebServer(GCDWebServerStreamedResponse.o)) was built for newer iOS version (8.3) than being linked (6.0)
ld: warning: object file (Motorino/Plugins/cordova-plugin-webserver/GCDWebServer.framework/GCDWebServer(GCDWebServerFunctions.o)) was built for newer iOS version (8.3) than being linked (6.0)
Undefined symbols for architecture i386:
  "_CDVLocalNotification", referenced from:
      -[AppDelegate application:didReceiveLocalNotification:] in AppDelegate.o
  "_CDVPluginHandleOpenURLNotification", referenced from:
      -[AppDelegate application:openURL:sourceApplication:annotation:] in AppDelegate.o
  "_CDVRemoteNotification", referenced from:
      -[AppDelegate application:didRegisterForRemoteNotificationsWithDeviceToken:] in AppDelegate.o
  "_CDVRemoteNotificationError", referenced from:
      -[AppDelegate application:didFailToRegisterForRemoteNotificationsWithError:] in AppDelegate.o
  "_OBJC_CLASS_$_CDVCommandDelegateImpl", referenced from:
      _OBJC_CLASS_$_MainCommandDelegate in MainViewController.o
  "_OBJC_CLASS_$_CDVCommandQueue", referenced from:
      _OBJC_CLASS_$_MainCommandQueue in MainViewController.o
  "_OBJC_CLASS_$_CDVPlugin", referenced from:
      _OBJC_CLASS_$_IonicKeyboard in IonicKeyboard.o
      _OBJC_CLASS_$_CDVGeocoder in CDVGeocoder.o
  "_OBJC_CLASS_$_CDVPluginResult", referenced from:
      objc-class-ref in CDVGeocoder.o
  "_OBJC_CLASS_$_CDVViewController", referenced from:
      _OBJC_CLASS_$_MainViewController in MainViewController.o
  "_OBJC_METACLASS_$_CDVCommandDelegateImpl", referenced from:
      _OBJC_METACLASS_$_MainCommandDelegate in MainViewController.o
  "_OBJC_METACLASS_$_CDVCommandQueue", referenced from:
      _OBJC_METACLASS_$_MainCommandQueue in MainViewController.o
  "_OBJC_METACLASS_$_CDVPlugin", referenced from:
      _OBJC_METACLASS_$_IonicKeyboard in IonicKeyboard.o
      _OBJC_METACLASS_$_CDVGeocoder in CDVGeocoder.o
  "_OBJC_METACLASS_$_CDVViewController", referenced from:
      _OBJC_METACLASS_$_MainViewController in MainViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Viewing all articles
Browse latest Browse all 228595

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>