utahiosmac / Marshal

Marshaling the typeless wild west of [String: Any]
MIT License
697 stars 62 forks source link

Cannot build via Carthage without specifying platform #128

Closed olejnjak closed 6 years ago

olejnjak commented 6 years ago

Hi,

I've run into an issue where Marshal 1.2.6 cannot be built using Carthage.

Running

echo 'github "utahiosmac/Marshal"' > Cartfile; carthage update

in terminal ends with error

*** Fetching Marshal
*** Checking out Marshal at "1.2.6"
*** xcodebuild output can be found in /var/folders/83/2fpf32vn49n1pc6y8bbyv8c80000gn/T/carthage-xcodebuild.iSvg8q.log
*** Building scheme "Marshal" in Marshal.xcodeproj
Failed to write to /private/tmp/Marshal/Carthage/Build/Mac/Marshal.framework: Error Domain=NSCocoaErrorDomain Code=260 "The file “Marshal.framework” couldn’t be opened because there is no such file." UserInfo={NSURL=file:///Users/olejnjak/Library/Caches/org.carthage.CarthageKit/DerivedData/9.3_9E145/Marshal/1.2.6/Build/Intermediates.noindex/ArchiveIntermediates/Marshal/BuildProductsPath/Release-iphoneos/Marshal.framework, NSFilePath=/Users/olejnjak/Library/Caches/org.carthage.CarthageKit/DerivedData/9.3_9E145/Marshal/1.2.6/Build/Intermediates.noindex/ArchiveIntermediates/Marshal/BuildProductsPath/Release-iphoneos/Marshal.framework, NSUnderlyingError=0x7ff994f2ba20 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}

I think it is because now Marshal target is set to use iOS SDK which wasn't in previous releases. I can create a PR which will fix this but I want to discuss how can I fix that? As far as I've been using Carthage I've seen a pattern that each platform has its own scheme and target in the project which is different from Marshale where there is a single target for all supported platforms.

So I was wondering what will be the preferred solution? Thanks

bwhiteley commented 6 years ago

Try 1.2.7. This should be fixed now.