3

我刚刚完成了我的应用程序的编程。我尝试归档应用程序以提交,但没有成功,显示以下错误。仅当我想存档应用程序、在测试设备上运行或模拟器运行完美(无错误)时才会出现此问题。

Ld /Users/Admin/Library/Developer/Xcode/DerivedData/MyApp-ekptdmvfytpoeoaedgfvjzqudoqa/Build/Intermediates/ArchiveIntermediates/MyApp/InstallationBuildProductsLocation/Applications/MyApp.app/MyApp normal armv7
    cd /Users/Admin/Desktop/MyApp3
    setenv IPHONEOS_DEPLOYMENT_TARGET 6.1
    setenv 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/iPhoneOS6.1.sdk -L/Users/Admin/Library/Developer/Xcode/DerivedData/MyApp-ekptdmvfytpoeoaedgfvjzqudoqa/Build/Intermediates/ArchiveIntermediates/MyApp/BuildProductsPath/Release-iphoneos -L/Users/Admin/Desktop/MyApp3 -F/Users/Admin/Library/Developer/Xcode/DerivedData/MyApp-ekptdmvfytpoeoaedgfvjzqudoqa/Build/Intermediates/ArchiveIntermediates/MyApp/BuildProductsPath/Release-iphoneos -filelist /Users/Admin/Library/Developer/Xcode/DerivedData/MyApp-ekptdmvfytpoeoaedgfvjzqudoqa/Build/Intermediates/ArchiveIntermediates/MyApp/IntermediateBuildFilesPath/MyApp.build/Release-iphoneos/MyApp.build/Objects-normal/armv7/MyApp.LinkFileList -dead_strip -weak_framework CoreFoundation -weak_framework UIKit -weak_framework AVFoundation -weak_framework CoreMedia -weak-lSystem -force_load /Users/Admin/Library/Developer/Xcode/DerivedData/MyApp-ekptdmvfytpoeoaedgfvjzqudoqa/Build/Intermediates/ArchiveIntermediates/MyApp/InstallationBuildProductsLocation/Applications/libCordova.a -ObjC -fobjc-link-runtime -miphoneos-version-min=6.1 -lxml2 -lxml2.2 -larchive.2 -framework CoreLocation -framework ImageIO -framework OpenAL -framework AssetsLibrary /Users/Admin/Library/Developer/Xcode/DerivedData/MyApp-ekptdmvfytpoeoaedgfvjzqudoqa/Build/Intermediates/ArchiveIntermediates/MyApp/BuildProductsPath/Release-iphoneos/libCordova.a -framework Foundation -weak_framework UIKit -framework CoreGraphics -framework AddressBook -framework AddressBookUI -framework AudioToolbox -weak_framework AVFoundation -framework CFNetwork -framework MediaPlayer -framework QuartzCore -framework SystemConfiguration -framework MobileCoreServices -weak_framework CoreMedia -framework CoreLocation -lCordova -o /Users/Admin/Library/Developer/Xcode/DerivedData/MyApp-ekptdmvfytpoeoaedgfvjzqudoqa/Build/Intermediates/ArchiveIntermediates/MyApp/InstallationBuildProductsLocation/Applications/MyApp.app/MyApp

ld: file not found: /Users/Admin/Library/Developer/Xcode/DerivedData/MyApp-ekptdmvfytpoeoaedgfvjzqudoqa/Build/Intermediates/ArchiveIntermediates/MyApp/InstallationBuildProductsLocation/Applications/libCordova.a
clang: error: linker command failed with exit code 1 (use -v to see invocation)


(null): File not found: /Users/Admin/Library/Developer/Xcode/DerivedData/Myapp-ekptdmvfytpoeoaedgfvjzqudoqa/Build/Intermediates/ArchiveIntermediates/Myapp/InstallationBuildProductsLocation/Applications/libCordova.a

(null): Linker command failed with exit code 1 (use -v to see invocation)

过去几天我已经用谷歌搜索了**。我尝试了我发现的一切。我将 Build Active Architecture Only 设置为“YES”,删除了搜索路径(它们已经是空的),更改了 iOS 版本,设置了 Validate Build Product 和其他内容。

我使用终端和 ./create 创建我的项目。

我什至做了一个新的干净的项目,并在那里发布了我的源代码。每次都会出现问题(即使我尝试归档新项目而不更改源中的任何内容)

使用:XCode 4.6.3 PhoneGap 2.9.0

我很绝望,希望得到帮助。谢谢你。

4

3 回答 3

8

解决方案

我找到了解决方案/解决方法。(无法发布,因为如果 10Rep. 限制,必须等待 8 小时)

  • 在 Target 的 Build Settings 中,找到“Other Linker Flags”
  • 更改 $(TARGET_BUILD_DIR)/libCordova.a
  • 到 $(BUILT_PRODUCTS_DIR)/libCordova.a

或者只是去 Cordova 站点并下载Cordova 3.0.0 (尽管旧的“启动画面 - 白色闪光”又回来了)

使用Cordova 3.0解决了这个问题:) 归档工作正常。

于 2013-08-14T10:59:25.363 回答
0

我遇到了同样的问题...在模拟器和测试设备上工作正常,在 Cardova 和 MyApp 项目上将 Build Active Architecture 设置为“YES”,使用终端 ./create 创建,从头开始重建项目。使用:XCode 4.6.3 PhoneGap 2.9.0

更新:用 PhoneGap 3.0.0 重建了我的项目,现在可以存档了。

于 2013-08-13T23:59:54.270 回答
0

对我来说,这是通过将 xcode 中构建设置中的“发布”设置的“仅构建活动架构”设置为“是”来解决的。

FlyingLemon 描述的修复已经完成,因为我有最新版本的 PhoneGap。

Phonegap 版本 3.4.0-0.19.13

Xcode 5.1 版

于 2014-04-09T08:55:39.257 回答