2

我正在考虑从头开始重建我想避免的项目,所以我正在寻求帮助。

尝试在发布时构建项目时,出现以下链接错误:

ld /Users/MAS/Library/Developer/Xcode/DerivedData/MyStreamPlayer-auylvnjdlrkfpvaxnulcaadbfhwl/Build/Products/Release-iphoneos/MyStreamPlayer.app/MyStreamPlayer normal armv7 cd /Users/MAS/iphoneApps/AlfsreamPlayer/MyStreamPlayer setenv IPHONEOS_DEPLOYMENT_TARGET 6.0 setenvPATH /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.0。sdk -L/Users/MAS/Library/Developer/Xcode/DerivedData/MyStreamPlayer-auylvnjdlrkfpvaxnulcaadbfhwl/Build/Products/Release-iphoneos -L/Users/MAS/iphoneApps/AlfsreamPlayer/MyStreamPlayer -L/Users/MAS/iphoneApps/AlfsreamPlayer/ MyStreamPlayer/../build -F/Users/MAS/Library/Developer/Xcode/DerivedData/MyStreamPlayer-auylvnjdlrkfpvaxnulcaadbfhwl/Build/Products/Release-iphoneos -filelist /Users/MAS/Library/Developer/Xcode/DerivedData/MyStreamPlayer-auylvnjdlrkfpvaxnulcaadbfhwl /Build/Intermediates/MyStreamPlayer.build/Release-iphoneos/MyStreamPlayer.build/Objects-normal/armv7/MyStreamPlayer.LinkFileList -Xlinker -map -Xlinker /Users/MAS/Library/Developer/Xcode/DerivedData/MyStreamPlayer-auylvnjdlrkfpvaxnulcaadbfhwl/Build /Intermediates/MyStreamPlayer.build/Release-iphoneos/MyStreamPlayer.build/MyStreamPlayer-LinkMap-normal-armv7。txt -dead_strip -finalize -prefinalized-library libViewRightWebiOS.a -finalized-product /Users/MAS/Library/Developer/Xcode/DerivedData/MyStreamPlayer-auylvnjdlrkfpvaxnulcaadbfhwl/Build/Products/Release-iphoneos/MyStreamPlayer.app/MyStreamPlayer -libVideoWebiOS -fobjc -link-runtime -miphoneos-version-min=6.0 -framework Foundation -framework UIKit -framework CoreGraphics -framework MediaPlayer -framework CFNetwork -libVideoWebiOS_debug -libVideoWebiOS -o /Users/MAS/Library/Developer/Xcode/DerivedData/MyStreamPlayer-auylvnjdlrkfpvaxnulcaadbfhwl/ Build/Products/Release-iphoneos/MyStreamPlayer.app/MyStreamPlayerapp/MyStreamPlayer -libVideoWebiOS -fobjc-link-runtime -miphoneos-version-min=6.0 -framework Foundation -framework UIKit -framework CoreGraphics -framework MediaPlayer -framework CFNetwork -libVideoWebiOS_debug -libVideoWebiOS -o /Users/MAS/Library/Developer/Xcode /DerivedData/MyStreamPlayer-auylvnjdlrkfpvaxnulcaadbfhwl/Build/Products/Release-iphoneos/MyStreamPlayer.app/MyStreamPlayerapp/MyStreamPlayer -libVideoWebiOS -fobjc-link-runtime -miphoneos-version-min=6.0 -framework Foundation -framework UIKit -framework CoreGraphics -framework MediaPlayer -framework CFNetwork -libVideoWebiOS_debug -libVideoWebiOS -o /Users/MAS/Library/Developer/Xcode /DerivedData/MyStreamPlayer-auylvnjdlrkfpvaxnulcaadbfhwl/Build/Products/Release-iphoneos/MyStreamPlayer.app/MyStreamPlayer

clang:错误:没有这样的文件或目录:'/Users/MAS/Library/Developer/Xcode/DerivedData/MyStreamPlayer-auylvnjdlrkfpvaxnulcaadbfhwl/Build/Products/Release-iphoneos/MyStreamPlayer.app/MyStreamPlayer'

调试模式没有问题。该项目在 xcode 4.5.1 上的另一台计算机上运行良好。我认为 xcode 版本可能是问题,但是当我在另一台使用 xcode 4.5.1 的计算机上尝试它时,我遇到了同样的问题。

该项目使用一个库libVideoWebiOS。我在 Build Phases -> Link Binary With Libraries 上有它。知道这个问题会产生什么吗?这是构建设置 -> 架构的屏幕截图。

架构

有很多建议,Change "Build Active Architecure Only" to Yes但不幸的是,这对我不起作用。

4

2 回答 2

0

Ron 是正确的,您必须先使用 Finalizer,然后才能创建发布版本。确保您已关闭 Xcode 以使终结器工作。

于 2013-09-19T22:59:14.220 回答
0

从您的评论看来multiple targets,您的project. 如果您使用任何third party librariesor wrapper classes,请不要导入project. 仅添加所需的files and folders内容。我不知道如何在release具有multiple targets. 但是用一个来制作你的项目target可能会解决你的问题。

删除references您的third party project.xcodeproj并添加source files您需要的所有内容project。希望能帮助到你。

于 2013-01-17T06:02:24.933 回答