菜鸟教程小白 发表于 2022-12-13 02:03:57

ios - iOS 8 和 Xcode 6 中的 Cordova


                                            <p><p>我刚刚更新到 Xcode 6,以便在 iOS 应用商店提交我的应用以供审核,但遇到了更多问题。请看附图!任何帮助都会很棒。</p>

<pre><code>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 &#34;/Users/jacbeyportes/Documents/Oasis Websites/Cadet Registration System/Apps/iOS/CRS/platforms/ios&#34;
    export IPHONEOS_DEPLOYMENT_TARGET=6.0
    export PATH=&#34;/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin&#34;
    /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:
&#34;_OBJC_METACLASS_$_CDVPlugin&#34;, referenced from:
      _OBJC_METACLASS_$_PushPlugin in PushPlugin.o
      _OBJC_METACLASS_$_CDVBarcodeScanner in CDVBarcodeScanner.o
      _OBJC_METACLASS_$_CDVConnection in CDVConnection.o
&#34;_CDVLocalNotification&#34;, referenced from:
      - in AppDelegate.o
&#34;_OBJC_CLASS_$_CDVViewController&#34;, referenced from:
      _OBJC_CLASS_$_MainViewController in MainViewController.o
&#34;_OBJC_METACLASS_$_CDVCommandDelegateImpl&#34;, referenced from:
      _OBJC_METACLASS_$_MainCommandDelegate in MainViewController.o
&#34;_CDVRemoteNotification&#34;, referenced from:
      - in AppDelegate.o
&#34;_OBJC_CLASS_$_CDVCommandQueue&#34;, referenced from:
      _OBJC_CLASS_$_MainCommandQueue in MainViewController.o
&#34;_OBJC_CLASS_$_CDVPlugin&#34;, referenced from:
      _OBJC_CLASS_$_PushPlugin in PushPlugin.o
      _OBJC_CLASS_$_CDVBarcodeScanner in CDVBarcodeScanner.o
      _OBJC_CLASS_$_CDVConnection in CDVConnection.o
&#34;_CDVRemoteNotificationError&#34;, referenced from:
      - in AppDelegate.o
&#34;_OBJC_METACLASS_$_CDVViewController&#34;, referenced from:
      _OBJC_METACLASS_$_MainViewController in MainViewController.o
&#34;_OBJC_METACLASS_$_CDVCommandQueue&#34;, referenced from:
      _OBJC_METACLASS_$_MainCommandQueue in MainViewController.o
&#34;_CDVPluginHandleOpenURLNotification&#34;, referenced from:
      - in AppDelegate.o
&#34;_OBJC_CLASS_$_CDVPluginResult&#34;, referenced from:
      objc-class-ref in PushPlugin.o
      objc-class-ref in CDVBarcodeScanner.o
      objc-class-ref in CDVConnection.o
&#34;_OBJC_CLASS_$_CDVCommandDelegateImpl&#34;, 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)
</code></pre></p>
                                    <br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
                                            <p><p>您需要更新 Cordova 和您的插件。</p>

<p>这里是关于 Cordova 迁移到 3.6.3 的新闻
<a href="http://cordova.apache.org/announcements/2014/09/22/cordova-361.html" rel="noreferrer noopener nofollow">http://cordova.apache.org/announcements/2014/09/22/cordova-361.html</a> </p>

<p>关于更新的插件,这里是相同的
<a href="http://cordova.apache.org/news/2014/09/22/plugins-release.html" rel="noreferrer noopener nofollow">http://cordova.apache.org/news/2014/09/22/plugins-release.html</a> </p>

<p>然后更新您的项目
    <code>cordova平台更新ios</code></p>

<p>不过,我也遇到了一些问题,但已通过删除平台并重新添加它来解决。您可以通过以下方式解决:</p>

<pre><code>cordova platform remove ios
cordova platform add ios
</code></pre></p>
                                   
                                                <p style="font-size: 20px;">关于ios - iOS 8 和 Xcode 6 中的 Cordova,我们在Stack Overflow上找到一个类似的问题:
                                                        <a href="https://stackoverflow.com/questions/25921830/" rel="noreferrer noopener nofollow" style="color: red;">
                                                                https://stackoverflow.com/questions/25921830/
                                                        </a>
                                                </p>
                                       
页: [1]
查看完整版本: ios - iOS 8 和 Xcode 6 中的 Cordova