2014-09-18 173 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

我必須卸載cordova並重新安裝cordova(版本3.6.3)。然後我從我的項目文件夾中刪除了iOS平臺並讀取它。我也刪除並重新添加了每個cordova插件。

這是一個痛苦,但這解決了我的編譯問題。

1

您將需要更新Cordova和您的插件。

這裏是科爾多瓦的消息移動到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 2014-11-13 01:41:47