Skip to content

Instantly share code, notes, and snippets.

@JanithaR
Last active May 15, 2019 14:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JanithaR/12e90e829ddd4acd289f674031823dc0 to your computer and use it in GitHub Desktop.
Save JanithaR/12e90e829ddd4acd289f674031823dc0 to your computer and use it in GitHub Desktop.
.xcodeproj corrupted
If you ever come across such a similar error or your xcode complains the project cannot be read because it can't parse it...
xcodebuild[25580:465966] Error Domain=NSCocoaErrorDomain Code=3840 "Unexpected character / at line 1" UserInfo={NSDebugDescription=Unexpected character / at line 1, kCFPropertyListOldStyleParsingError=Error Domain=NSCocoaErrorDomain Code=3840 "Missing ';' on line 1095" UserInfo={NSDebugDescription=Missing ';' on line 1095}}
Do, actually check the line in your project.pbxproj. Mine was...
HEADER_SEARCH_PATHS = "$(inherited)""$(SRCROOT)/../node_modules/react-native-i18n/ios";
and I corrected it to...
HEADER_SEARCH_PATHS = (
"$(inherited)",
"$(SRCROOT)/../node_modules/react-native-i18n/ios"
);
@yazmnh87
Copy link

After completed a merge this file has become corrupted. <<<<<<<<<<<<<HEAD and other traces of the merge were scattered throughout the file. After deleting everything I could find, it still didnt work. Here is the error I was getting I'm inferring from the error that the issue was on line 44 but couldn't find anything. Can you tell me from the error where you think the problem would have been?

_error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 74. To debug build logs further, consider building your app with Xcode.app, by opening wild5.xcodeproj

2019-05-14 20:47:26.527 xcodebuild[84734:4319899] Error Domain=NSCocoaErrorDomain Code=3840 "Unexpected character / at line 1" UserInfo={NSDebugDescription=Unexpected character / at line 1, kCFPropertyListOldStyleParsingError=Error Domain=NSCocoaErrorDomain Code=3840 "Expected terminating '}' for dictionary at line 44" UserInfo={NSDebugDescription=Expected terminating '}' for dictionary at line 44}}
xcodebuild: error: Unable to read project 'wild5.xcodeproj'.
Reason: The project ‘wild5’ is damaged and cannot be opened due to a parse error. Examine the project file for invalid edits or unresolved source control conflicts.

Path: /Users/bill/dev/React_native/Wild5/Wild5/wild5/ios/wild5.xcodeproj_

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment