2014-09-18 3 views
2

Я только что обновился до Xcode 6, чтобы отправить свои приложения для просмотра в магазине приложений iOS и столкнулся с большими проблемами. Пожалуйста, смотрите изображение прилагается! Любая помощь вообще была бы потрясающей.Кордова в iOS 8 и Xcode 6

Build target CRS 

Ld /Users/jacbeyportes/Library/Developer/Xcode/DerivedData/CRS-fydzgpcksptwdjaztipsuhofllde/Build/Intermediates/CRS.build/Debug-iphoneos/CRS.build/Objects-normal/armv7/CRS normal armv7 
    cd "/Users/jacbeyportes/Documents/Oasis Websites/Cadet Registration System/Apps/iOS/CRS/platforms/ios" 
    export IPHONEOS_DEPLOYMENT_TARGET=6.0 
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.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 armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.0.sdk -L/Users/jacbeyportes/Library/Developer/Xcode/DerivedData/CRS-fydzgpcksptwdjaztipsuhofllde/Build/Products/Debug-iphoneos -F/Users/jacbeyportes/Library/Developer/Xcode/DerivedData/CRS-fydzgpcksptwdjaztipsuhofllde/Build/Products/Debug-iphoneos -filelist /Users/jacbeyportes/Library/Developer/Xcode/DerivedData/CRS-fydzgpcksptwdjaztipsuhofllde/Build/Intermediates/CRS.build/Debug-iphoneos/CRS.build/Objects-normal/armv7/CRS.LinkFileList -dead_strip -weak_framework CoreFoundation -weak_framework UIKit -weak_framework AVFoundation -weak_framework CoreMedia -weak-lSystem -force_load /Users/jacbeyportes/Library/Developer/Xcode/DerivedData/CRS-fydzgpcksptwdjaztipsuhofllde/Build/Products/Debug-iphoneos/libCordova.a -ObjC -fobjc-arc -fobjc-link-runtime -miphoneos-version-min=6.0 -framework AssetsLibrary /Users/jacbeyportes/Library/Developer/Xcode/DerivedData/CRS-fydzgpcksptwdjaztipsuhofllde/Build/Products/Debug-iphoneos/libCordova.a -framework CoreGraphics -framework MobileCoreServices -framework CoreLocation -liconv -framework AVFoundation -framework CoreVideo -framework QuartzCore -weak_framework SystemConfiguration -Xlinker -dependency_info -Xlinker /Users/jacbeyportes/Library/Developer/Xcode/DerivedData/CRS-fydzgpcksptwdjaztipsuhofllde/Build/Intermediates/CRS.build/Debug-iphoneos/CRS.build/Objects-normal/armv7/CRS_dependency_info.dat -o /Users/jacbeyportes/Library/Developer/Xcode/DerivedData/CRS-fydzgpcksptwdjaztipsuhofllde/Build/Intermediates/CRS.build/Debug-iphoneos/CRS.build/Objects-normal/armv7/CRS 

ld: warning: ignoring file /Users/jacbeyportes/Library/Developer/Xcode/DerivedData/CRS-fydzgpcksptwdjaztipsuhofllde/Build/Products/Debug-iphoneos/libCordova.a, file was built for archive which is not the architecture being linked (armv7): /Users/jacbeyportes/Library/Developer/Xcode/DerivedData/CRS-fydzgpcksptwdjaztipsuhofllde/Build/Products/Debug-iphoneos/libCordova.a 
Undefined symbols for architecture armv7: 
    "_OBJC_METACLASS_$_CDVPlugin", referenced from: 
     _OBJC_METACLASS_$_PushPlugin in PushPlugin.o 
     _OBJC_METACLASS_$_CDVBarcodeScanner in CDVBarcodeScanner.o 
     _OBJC_METACLASS_$_CDVConnection in CDVConnection.o 
    "_CDVLocalNotification", referenced from: 
     -[AppDelegate application:didReceiveLocalNotification:] in AppDelegate.o 
    "_OBJC_CLASS_$_CDVViewController", referenced from: 
     _OBJC_CLASS_$_MainViewController in MainViewController.o 
    "_OBJC_METACLASS_$_CDVCommandDelegateImpl", referenced from: 
     _OBJC_METACLASS_$_MainCommandDelegate in MainViewController.o 
    "_CDVRemoteNotification", referenced from: 
     -[AppDelegate application:didRegisterForRemoteNotificationsWithDeviceToken:] in AppDelegate.o 
    "_OBJC_CLASS_$_CDVCommandQueue", referenced from: 
     _OBJC_CLASS_$_MainCommandQueue in MainViewController.o 
    "_OBJC_CLASS_$_CDVPlugin", referenced from: 
     _OBJC_CLASS_$_PushPlugin in PushPlugin.o 
     _OBJC_CLASS_$_CDVBarcodeScanner in CDVBarcodeScanner.o 
     _OBJC_CLASS_$_CDVConnection in CDVConnection.o 
    "_CDVRemoteNotificationError", referenced from: 
     -[AppDelegate application:didFailToRegisterForRemoteNotificationsWithError:] in AppDelegate.o 
    "_OBJC_METACLASS_$_CDVViewController", referenced from: 
     _OBJC_METACLASS_$_MainViewController in MainViewController.o 
    "_OBJC_METACLASS_$_CDVCommandQueue", referenced from: 
     _OBJC_METACLASS_$_MainCommandQueue in MainViewController.o 
    "_CDVPluginHandleOpenURLNotification", referenced from: 
     -[AppDelegate application:openURL:sourceApplication:annotation:] in AppDelegate.o 
    "_OBJC_CLASS_$_CDVPluginResult", referenced from: 
     objc-class-ref in PushPlugin.o 
     objc-class-ref in CDVBarcodeScanner.o 
     objc-class-ref in CDVConnection.o 
    "_OBJC_CLASS_$_CDVCommandDelegateImpl", referenced from: 
     _OBJC_CLASS_$_MainCommandDelegate in MainViewController.o 
ld: symbol(s) not found for architecture armv7 
clang: error: linker command failed with exit code 1 (use -v to see invocation) 

ответ

0

Мне пришлось удалить кордову и переустановить кордову (версия 3.6.3). Затем я удалил платформу iOS из своей папки проекта и прочитал ее. Я также удалил и добавил каждый плагин cordova.

Это была боль, но это фиксировало мои проблемы с компиляцией для меня.

1

Вам необходимо обновить как Кордову, так и ваши плагины.

Вот новость о переходе на Кордова 3.6.3 http://cordova.apache.org/announcements/2014/09/22/cordova-361.html

Здесь то же самое касается плагинов, которые были обновлены http://cordova.apache.org/news/2014/09/22/plugins-release.html

Затем обновите ваш проект cordova platform update ios

Однако я Кроме того, в некоторых проблемах возникают проблемы, но это было исправлено, удалив платформу и добавив ее снова. Вы можете это сделать:

cordova platform remove ios 
cordova platform add ios 
+0

Исправлено! большое спасибо – Jacbey

Смежные вопросы