我是一个相当新的iPhone开发人员。我有四个应用程序处于最终测试阶段,并努力让它们签名并为应用程序商店做好准备
我复制了RELEASE配置,当我尝试使用它构建时,我收到了这个错误:
Precompile myappname_Prefix.pch<br>
Command /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1<br>
我没有使用DEBUG配置出错。
任何帮助将不胜感激
我意识到我可能在这里遇到其他一些问题但你们其中一个开发人员的指导会很棒!
以下是Xcode Build Results的全文:
ProcessPCH /var/folders/kP/kPjI69l+HP0oTFOqT+IHLE+++TI/-Caches-/com.apple.Xcode.501/SharedPrecompiledHeaders/myappname_Pro_Prefix-aozmnrcmoaunqpberswshlqzvjyv/myappname_Pro_Prefix.pch.gch myappname_Pro_Prefix.pch normal armv7 objective-c com.apple.compilers.gcc.4_2
cd "/Users/hanaan/Documents/iPhone dev/myappname Pro"
setenv LANG en_US.US-ASCII
setenv PATH "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 -x objective-c-header -arch armv7 -fmessage-length=0 -pipe -std=c99 -Wno-trigraphs -fpascal-strings -Os -mdynamic-no-pic -Wreturn-type -Wunused-variable -DPRO -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.0.sdk -fvisibility=hidden -gdwarf-2 -mthumb -miphoneos-version-min=4.0 -iquote "/Users/hanaan/Documents/iPhone dev/myappname Pro/build/myappname.build/iphoneDistribution-iphoneos/myappname.build/myappname Pro-generated-files.hmap" "-I/Users/hanaan/Documents/iPhone dev/myappname Pro/build/myappname.build/iphoneDistribution-iphoneos/myappname.build/myappname Pro-own-target-headers.hmap" "-I/Users/hanaan/Documents/iPhone dev/myappname Pro/build/myappname.build/iphoneDistribution-iphoneos/myappname.build/myappname Pro-all-target-headers.hmap" -iquote "/Users/hanaan/Documents/iPhone dev/myappname Pro/build/myappname.build/iphoneDistribution-iphoneos/myappname.build/myappname Pro-project-headers.hmap" "-F/Users/hanaan/Documents/iPhone dev/myappname Pro/build/iphoneDistribution-iphoneos" "-I/Users/hanaan/Documents/iPhone dev/myappname Pro/build/iphoneDistribution-iphoneos/include" "-I/Users/hanaan/Documents/iPhone dev/myappname Pro/build/myappname.build/iphoneDistribution-iphoneos/myappname.build/DerivedSources/armv7" "-I/Users/hanaan/Documents/iPhone dev/myappname Pro/build/myappname.build/iphoneDistribution-iphoneos/myappname.build/DerivedSources" -DNS_BLOCK_ASSERTIONS=1 -c "/Users/hanaan/Documents/iPhone dev/myappname Pro/myappname_Pro_Prefix.pch" -o /var/folders/kP/kPjI69l+HP0oTFOqT+IHLE+++TI/-Caches-/com.apple.Xcode.501/SharedPrecompiledHeaders/myappname_Pro_Prefix-aozmnrcmoaunqpberswshlqzvjyv/myappname_Pro_Prefix.pch.gch
arm-apple-darwin10-gcc-4.2.1: /Users/hanaan/Documents/iPhone dev/myappname Pro/myappname_Pro_Prefix.pch: No such file or directory
arm-apple-darwin10-gcc-4.2.1: warning: '-x objective-c-header' after last input file has no effect
arm-apple-darwin10-gcc-4.2.1: no input files
Command /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1
答案 0 :(得分:0)
答案 1 :(得分:0)
它抱怨它无法找到包含主要框架标头的myappname_Pro_Prefix.pch
文件。
通过获取信息并检查其“目标”标记,确保将pch文件添加到发布目标(您可能有多个目标)。在“常规”选项卡中检查文件的路径,以确保那里没有任何怪异。
使用Xcode>Empty Caches...
清除Xcode缓存。然后清理所有目标。