Xcode 4.3.1이 설치되어 있습니다. 내가 필요한에도 불구하고 알 수없는 유형의 이름 socklen_t
오류를 얻고 내가 어떤을 포함 실종 SCNetwork.h
알 수없는 타입 이름`socklen_t`
#ifndef _SCNETWORK_H
#define _SCNETWORK_H
#include <Availability.h>
#include <sys/cdefs.h>
#include <sys/types.h>
#include <sys/socket.h> // required include
#include <CoreFoundation/CoreFoundation.h>
에 포함? 터미널에서
:
➜ ABC git:(master) ✗ xcodebuild
=== BUILD NATIVE TARGET ABC OF PROJECT DEF WITH THE DEFAULT CONFIGURATION (Release) ===
Check dependencies
2012-03-19 10:20:43.360 xcodebuild[42278:4403] error: Error Domain=NSPOSIXErrorDomain Code=2 "Non-zero exit code 127 returned from shell command: /usr/bin/gcc-4.2 -v -E -dM -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk -x objective-c -c /dev/null 2>&1" UserInfo=0x401387be0 {NSLocalizedDescription=Non-zero exit code 127 returned from shell command: /usr/bin/gcc-4.2 -v -E -dM -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk -x objective-c -c /dev/null 2>&1, NSLocalizedFailureReason=No such file or directory}
2012-03-19 10:20:43.362 xcodebuild[42278:4403] Warning: Couldn't discover the 'gcc-4.2' compiler's built-in search paths and preprocessor definitions for language dialect 'objective-c'.
Compiler: /usr/bin/gcc-4.2
Reason: /usr/bin/gcc-4.2 -v -E -dM -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk -x objective-c -c /dev/null 2>&1
2012-03-19 10:20:43.410 xcodebuild[42278:4403] error: Error Domain=NSPOSIXErrorDomain Code=2 "Non-zero exit code 127 returned from shell command: /usr/bin/gcc-4.2 -v -E -dM -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk -x c -c /dev/null 2>&1" UserInfo=0x401523f80 {NSLocalizedDescription=Non-zero exit code 127 returned from shell command: /usr/bin/gcc-4.2 -v -E -dM -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk -x c -c /dev/null 2>&1, NSLocalizedFailureReason=No such file or directory}
2012-03-19 10:20:43.411 xcodebuild[42278:4403] Warning: Couldn't discover the 'gcc-4.2' compiler's built-in search paths and preprocessor definitions for language dialect 'c'.
Compiler: /usr/bin/gcc-4.2
Reason: /usr/bin/gcc-4.2 -v -E -dM -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk -x c -c /dev/null 2>&1
Code Sign error: The identity 'iPhone Distribution' doesn't match any valid, non-expired certificate/private key pair in the default keychain
** BUILD FAILED **
The following build commands failed:
Check dependencies
(1 failure)
'''''에는'socklen_t'을 적절하게 정의하는 필수 헤더가 포함되어야합니다. 그래서 프로젝트 나 빌드 구성 등에 문제가있을 수 있습니다. 선행 처리기 출력을 게시하십시오 (** 제품 → 출력 생성 → 사전 처리 된 파일 생성 ** 메뉴 옵션 사용). –
사전 처리 된 파일이 강조 표시되어 있지 않습니다. – Ava
그래서 뭐? 도움이 필요하면 전 처리기 출력을 게시하십시오. –