구문 분석 문제: 'stringByAppendingFormat' 모듈을 찾을 수 없습니다. (Parse Issue: Module 'stringByAppendingFormat' not found)


문제 설명

구문 분석 문제: 'stringByAppendingFormat' 모듈을 찾을 수 없습니다. (Parse Issue: Module 'stringByAppendingFormat' not found)

Xcode 5로 iOS7 프로젝트 작성

다음과 같은 간단한 코드가 있습니다.

NSString* inflation=@"test'", *import=@"";
if ([inflation length]>0){
    import=[import stringByAppendingFormat:@"\nExports %@",inflation];
}

그리고 컴파일을 시도할 때 이 오류가 계속 발생합니다: Module 'stringByAppendingFormat' not found

여기에 이미지 설명 입력


참조 솔루션

방법 1:

LLVM uses import for importing modules (currently an experimental feature but seems to be enabled by default in Xcode). Have a look at the docs.

To resolve your issue, just rename the variable, or compile with "‑fno‑modules".

방법 2:

There is not an issue with this code, so don't blame ios7 :P

Just change your variable name.

NSString* inflation=@"test'", *importString=@"";
if ([inflation length]>0){
    importString=[importString stringByAppendingFormat:@"\nExports %@",inflation];
}

(by user422337SebastianRajneesh071)

참조 문서

  1. Parse Issue: Module 'stringByAppendingFormat' not found (CC BY‑SA 3.0/4.0)

#ios7 #objective-c #xcode5






관련 질문

iOS 7 Safari 사용자 에이전트를 결정하는 가장 좋은 방법은 무엇입니까? (What is the best way to determine iOS 7 Safari user agent?)

iOS 7, 탐색바가 반투명하지 않습니다... 더보기 탭이 반투명하게 보이는 이유는 무엇입니까? (iOS 7, navigation bar has no translucency... why does More tab look translucent?)

사진 촬영 후 사진 사용 또는 재촬영을 선택할 수 없습니다. (After Taking Picture cannot select Use Photo or Retake)

구문 분석 문제: 'stringByAppendingFormat' 모듈을 찾을 수 없습니다. (Parse Issue: Module 'stringByAppendingFormat' not found)

탐색 컨트롤러로 보기로 돌아가기 위해 자동 제스처를 끄는 방법은 무엇입니까? (How to turn off the automatic gesture to go back a view with a navigation controller?)

IOS 7 + 강제 컨트롤러의 경우 세로 방향 (IOS 7 + For force controller Orientation to Portrait)

Phonegap 앱은 iOS7에서 실행되지 않습니다. (Phonegap App doesn't run on iOS7)

UITableViewCellStyle2 색조 색상 설정 (Setting UITableViewCellStyle2 Tint Color)

iOS - flexbox 내부에 입력 요소가 있는 부동 커서 (iOS - Floating cursor with input elements inside flexbox)

UITableView는 iOS 7에서 작동하지만 iOS 8에서는 깨져 보입니다. (UITableView works in iOS 7 but appears crushed in iOS 8)

핵심 데이터 튜토리얼 (Core data tutorial)

StoryBoard를 사용하여 UITableViewCell 내부에 collectionView를 빠르게 빌드하는 방법 (How to use StoryBoard quick build a collectionView inside UITableViewCell)







코멘트