Skip to content

Conversation

drdaz
Copy link
Member

@drdaz drdaz commented Oct 31, 2018

I was just trying to build the iOS SDK using Carthage. It doesn't build as-is; not sure if this is due to my installation of Xcode 10.1 today, but it failed like this:

CopyStringsFile /Users/drdaz/Library/Caches/org.carthage.CarthageKit/DerivedData/10.1_10B61/Parse-SDK-iOS-OSX/1.17.1/Build/Intermediates.noindex/ArchiveIntermediates/ParseFacebookUtilsV4-iOS/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/ParseFacebookUtilsV4.framework/Localizable.strings /Users/drdaz/Desktop/PodsTest/Carthage/Checkouts/Parse-SDK-iOS-OSX/ParseFacebookUtils/Resources/Localizable.strings (in target: ParseFacebookUtilsV4-iOS)
    cd /Users/drdaz/Desktop/PodsTest/Carthage/Checkouts/Parse-SDK-iOS-OSX/ParseFacebookUtils
    builtin-copyStrings --validate --inputencoding utf-8 --outputencoding binary --outdir /Users/drdaz/Library/Caches/org.carthage.CarthageKit/DerivedData/10.1_10B61/Parse-SDK-iOS-OSX/1.17.1/Build/Intermediates.noindex/ArchiveIntermediates/ParseFacebookUtilsV4-iOS/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/ParseFacebookUtilsV4.framework -- /Users/drdaz/Desktop/PodsTest/Carthage/Checkouts/Parse-SDK-iOS-OSX/ParseFacebookUtils/Resources/Localizable.strings
error: could not decode input file using specified encoding: Unicode (UTF-8), and the file contents appear to be encoded in Unicode (UTF-16)

** ARCHIVE FAILED **


The following commands produced analyzer issues:
        AnalyzeShallow /Users/drdaz/Desktop/PodsTest/Carthage/Checkouts/Parse-SDK-iOS-OSX/Parse/Parse/PFObject.m normal arm64
(1 command with analyzer issues)

The following build commands failed:
        CopyStringsFile /Users/drdaz/Library/Caches/org.carthage.CarthageKit/DerivedData/10.1_10B61/Parse-SDK-iOS-OSX/1.17.1/Build/Intermediates.noindex/ArchiveIntermediates/ParseFacebookUtilsV4-iOS/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/ParseFacebookUtilsV4.framework/Localizable.strings /Users/drdaz/Desktop/PodsTest/Carthage/Checkouts/Parse-SDK-iOS-OSX/ParseFacebookUtils/Resources/Localizable.strings

As the error suggests I tracked the issue down to some weird bytes in the Localizable.strings file in ParseFacebookUtils. This change allows me to build successfully using Carthage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants