热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

ios8和Xcode6中的Cordova。-CordovainiOS8andXcode6

IvejustupdatedtoXcode6inordertosubmitmyappsforreviewontheiOSappstoreandhavecom

I've just updated to Xcode 6 in order to submit my apps for review on the iOS app store and have come across more problems. Please see the image attached! Any help at all would be amazing.

我刚刚更新到Xcode 6,以便提交我的应用程序在iOS应用商店进行审查,并遇到了更多的问题。请看附件图片!任何帮助都是惊人的。

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)

2 个解决方案

#1


1  

You will need to update both Cordova and your plugins.

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

Here is the news on Cordova moving to 3.6.3 http://cordova.apache.org/announcements/2014/09/22/cordova-361.html

下面是关于Cordova的消息,它将移动到3.6.3 http://cordova.apache.org/announcements/2014/09/22/cordova-361.html。

Here is the same regarding the plugins that were updated http://cordova.apache.org/news/2014/09/22/plugins-release.html

以下是对已更新的插件的相同看法:http://cordova.apache.org/news/2014/09/22/plugins-release.html。

Then update your project cordova platform update ios

然后更新您的项目cordova平台更新ios。

However, I've also run into some issues but it was fixed by removing the platform and adding it again.. You can do that by:

然而,我也遇到了一些问题,但它是通过移除平台并再次添加它而得到修复的。你可以这样做:

cordova platform remove ios
cordova platform add ios

#2


0  

I had to uninstall cordova and reinstall cordova (version 3.6.3). Then I removed the iOS platform from my project folder and readded it. I also removed and re-added each cordova plugin.

我不得不卸载cordova并重新安装cordova(版本3.6.3)。然后我将iOS平台从我的项目文件夹中移除并读取。我还删除并重新添加了每个cordova插件。

It was a pain, but that fixed my compile issues for me.

这是一种痛苦,但这为我解决了我的编辑问题。


推荐阅读
author-avatar
ANNIE炫可_315
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有