- iOS/Objective-C 元类和类别
- objective-c - -1001 错误,当 NSURLSession 通过 httpproxy 和/etc/hosts
- java - 使用网络类获取 url 地址
- ios - 推送通知中不播放声音
我试图在 iPhone 6.1 模拟器上构建/运行 iOS 应用程序,但我收到此错误。我环顾四周并尝试了我发现的一切,但没有任何帮助。
这将在其他计算机上构建,但不会在这台计算机上构建。我完全是 iOS 开发的新手,所以我不知道从哪里开始。
感谢大家的帮助,错误信息如下:
CompileC /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/Objects-normal/i386/AppDelegate.o CorsageCreations/AppDelegate.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd "/Volumes/VMware Shared Folders/iosProj/corsage-ios/CorsageCreations"
setenv LANG en_US.US-ASCII
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.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 -x objective-c -arch i386 -fmessage-length=0 -std=gnu99 -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wreturn-type -Wno-implicit-atomic-properties -Wno-receiver-is-weak -Wduplicate-method-match -Wformat -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-enum-conversion -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wno-undeclared-selector -Wno-deprecated-implementations -DDEBUG=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk -fexceptions -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -Wno-sign-conversion -fobjc-abi-version=2 -fobjc-legacy-dispatch -mios-simulator-version-min=5.0 -iquote /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/CorsageCreations-generated-files.hmap -I/Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/CorsageCreations-own-target-headers.hmap -I/Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/CorsageCreations-all-target-headers.hmap -iquote /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/CorsageCreations-project-headers.hmap -I/Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Products/Debug-iphonesimulator/include -I/Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Products/Debug-iphonesimulator -I/Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/DerivedSources/i386 -I/Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/DerivedSources -F/Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Products/Debug-iphonesimulator "-F/Volumes/VMware Shared Folders/iosProj/corsage-ios/CorsageCreations/../../../../../../../Desktop/FbShare" "-F/Volumes/VMware Shared Folders/iosProj/corsage-ios/CorsageCreations/../../.." -F/Users/GuestUser/Desktop -include /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/PrecompiledHeaders/CorsageCreations-Prefix-fjwwmvkmbxepoldfyuusggxlzkzu/CorsageCreations-Prefix.pch -MMD -MT dependencies -MF /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/Objects-normal/i386/AppDelegate.d --serialize-diagnostics /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/Objects-normal/i386/AppDelegate.dia -c "/Volumes/VMware Shared Folders/iosProj/corsage-ios/CorsageCreations/CorsageCreations/AppDelegate.m" -o /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/Objects-normal/i386/AppDelegate.o
0 clang 0x0000000100c57bb2 main + 12932498
Stack dump:
0. Program arguments: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -cc1 -triple i386-apple-ios5.0.0 -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -main-file-name AppDelegate.m -pic-level 2 -mdisable-fp-elim -masm-verbose -target-cpu yonah -target-linker-version 136 -g -coverage-file /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/Objects-normal/i386/AppDelegate.o -resource-dir /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/4.2 -dependency-file /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/Objects-normal/i386/AppDelegate.d -MT dependencies -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk -iquote /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/CorsageCreations-generated-files.hmap -iquote /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/CorsageCreations-project-headers.hmap -include-pch /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/PrecompiledHeaders/CorsageCreations-Prefix-fjwwmvkmbxepoldfyuusggxlzkzu/CorsageCreations-Prefix.pch.pth -D DEBUG=1 -I /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/CorsageCreations-own-target-headers.hmap -I /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/CorsageCreations-all-target-headers.hmap -I /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Products/Debug-iphonesimulator/include -I /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Products/Debug-iphonesimulator -I /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/DerivedSources/i386 -I /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/DerivedSources -F/Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Products/Debug-iphonesimulator -F/Volumes/VMware Shared Folders/iosProj/corsage-ios/CorsageCreations/../../../../../../../Desktop/FbShare -F/Volumes/VMware Shared Folders/iosProj/corsage-ios/CorsageCreations/../../.. -F/Users/GuestUser/Desktop -fmodule-cache-path /var/folders/_z/1x7mbrnx6f310pngnn97l5_00000gn/T/clang-module-cache -O0 -Wno-trigraphs -Wno-missing-field-initializers -Wno-missing-prototypes -Wreturn-type -Wno-implicit-atomic-properties -Wno-receiver-is-weak -Wduplicate-method-match -Wformat -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-enum-conversion -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wno-undeclared-selector -Wno-deprecated-implementations -Wprotocol -Wdeprecated-declarations -Wno-sign-conversion -std=gnu99 -ferror-limit 19 -fmessage-length 0 -stack-protector 1 -mstackrealign -fblocks -fobjc-runtime=ios-5.0.0 -fobjc-default-synthesize-properties -fobjc-exceptions -fexceptions -fpascal-strings -fdiagnostics-show-option -fasm-blocks -serialize-diagnostic-file /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/Objects-normal/i386/AppDelegate.dia -o /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/Objects-normal/i386/AppDelegate.o -x objective-c /Volumes/VMware Shared Folders/iosProj/corsage-ios/CorsageCreations/CorsageCreations/AppDelegate.m
1. /Volumes/VMware Shared Folders/iosProj/corsage-ios/CorsageCreations/CorsageCreations/ArrayObject.h:46:33: current parser token ':'
clang: error: unable to execute command: Segmentation fault: 11
clang: error: clang frontend command failed due to signal (use -v to see invocation)
Apple LLVM version 4.2 (clang-425.0.28) (based on LLVM 3.2svn)
Target: i386-apple-darwin12.3.0
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to http://developer.apple.com/bugreporter/ and include the crash backtrace, preprocessed source, and associated run script.
clang: error: unable to execute command: Segmentation fault: 11
clang: note: diagnostic msg: Error generating preprocessed source(s).
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 254
最佳答案
我遇到过同样的问题。事实证明,VMWare 共享的主机文件夹是只读的(即使未选中 VM 设置中的只读属性)。
您是否尝试过运行示例 xcode 项目或将您引用的代码复制到 VM?
我最终使用 Windows 8 中内置的常规文件共享来共享我的文件夹。
关于ios - XCode clang 失败,退出代码为 254,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17426810/
我目前正在为 Cocoa/Objective-C 项目编写一个脚本来完全自动化我的编译-运行-调试过程。 我的最后一行代码是: lldb -f Build/MyApp.app -o "run" 这实际
我有一个带有登录屏幕的脚本,如果按下取消按钮,我想完全退出该应用程序。我尝试了 3 种方法: 系统退出() QApplication.quit() QCoreApplication.instance(
我有一个 Flash 应用程序,可以重定向到另一个页面。我很乐意捕获任何其他窗口卸载事件(单击链接/提交表单)并警告用户他们将丢失 Flash 应用程序中的进度。 但是,我找不到任何方法来判断 URL
我正在尝试在 Ubuntu 上用 Python 编写一个简单的程序,它将在播放视频完成后关闭/退出/退出 VLC Player。 能否请您指导我应该在我的程序中添加什么以获得我需要的结果。 impor
我在 Lynda.com 上学习 PHP 2 视频时遇到了一个问题,因为讲师似乎忽略了告诉我们他在视频中执行的步骤之一。我在这里上传了相关视频http://www.youtube.com/watch?
某天在群内有同学问到,在python下我用input或者raw_input都得输入完后回车才能获取到输入的值,那如何实现任意键退出暂停等功能呢,我当时也没有多想,因为接触python时间也不算长,主
我按顺序调用了几个函数(我无法编辑),但有些函数会重定向用户,所以我永远不会进入下一个函数。 我正在调用一个第三方函数,它调用了我能够阻止的 wp_redirect(),但是下一行是 exit;我不知
终止/退出主函数的 D 方式是什么? import std.stdio; import core.thread; void main() { int i; while (i <= 5)
我正在申请写作。用户可以打开应用程序、写一些文本、保存他们的工作等。 我试图做到这一点,以便点击 window close按钮将提示用户 (a) 保存他们的工作(如有必要)或 (b) 退出。 我正在尝
我正在通过在 repl 中检查别人的代码来玩弄它。 它不断调用 System/exit,这导致我的 repl 崩溃。这真是令人气愤。 在我有权访问的所有代码中,我都模拟了调用。 但它也会调用一些我没有
我正在使用 subprocess执行mimic的模块程序(指定 here )。下面的代码成功地读取了一些文本并写入了一个 mp3 文件。 import subprocess proc = subpro
退出 .then 范围后数组上的值被清除 在下面的代码中tableValues1.length 给我正确的长度,直到它位于每个循环内当它退出时,作用域数组长度为零。 请谁能帮我解决这个问题 - 谢谢
我正在尝试为 s3cmd 编写一个 docker 镜像。当我通过 docker-compose 运行从 Dockerfile 构建的图像时,容器在 docker compose run 命令之前退出。
这个问题已经有答案了: 已关闭12 年前。 Possible Duplicate: Quitting an application - is that frowned upon? 我编写了一个 And
我遇到 Selenium WebDriver 仅执行一次后退出 for 循环的问题。据推测,这是获取内容和在加载页面之前启动循环的问题。是否有可能让 webdriver 等待页面加载? List al
#include #include #include #include "Player.h" using namespace std; void PlayerMenu(); int main()
class Test{ public static void main(String args[]) { Patron list[] = new PatronData(
我正在做一些作业,遇到了这个问题。 Write a program that reads several lines of text and prints a table indicating the
我正在用 C 创建一个简单的 Linux 命令 shell。我无法理解我的代码在哪里出现问题。 “commands”是我希望作为一个父进程的子进程同时执行的 Linux 命令字符串列表。当所有执行完成
我的控制台应用程序有点问题。应用程序应该从用户那里获取数字并将它们添加到列表中,但是如果输入是“c”,它应该关闭。我不知道如何在不使用 Scanner.nextLine() 挂起应用程序并退出循环的情
我是一名优秀的程序员,十分优秀!