Carthage / Carthage

A simple, decentralized dependency manager for Cocoa
Other
14.94k stars 1.55k forks source link

Unable to parse binary-only framework JSON #3378

Open Karram-Ayman opened 1 month ago

Karram-Ayman commented 1 month ago

Cartfile

github "privateAccount/pd-ios-fluid" ~> 4.0.0

binary "https://github.com/privateAccount/apollo-ios-xcframework/releases/download/1.14.0/Apollo.json" ~> 1.14.0

Actual outcome Unable to parse binary-only framework JSON at https://github.com/privateAccount/apollo-ios-xcframework/releases/download/1.14.0/Apollo.json due to error:invalid JSON: dataCorrupted(Swift.DecodingError.Context(codingPath: [], debugDescription: "The given data was not valid JSON.", underlyingError: Optional(Error Domain=NSCocoaErrorDomain Code=3840 "Unexpected character 'N' around line 1, column 1." UserInfo={NSJSONSerializationErrorIndex=0, NSDebugDescription=Unexpected character 'N' around line 1, column 1.})))

Expected outcome github "privateAccount/pd-ios-fluid" ~> 4.0.0 is being resolved scuusessfuly however binary "https://github.com/privateAccount/apollo-ios-xcframework/releases/download/1.14.0/Apollo.json" ~> 1.14.0 is not looks like it's an authentication issue as this repo is private however "pd-ios-fluid" is also private under same account so why pd-ios-fluid was successfully resolved and binary is not

Karram-Ayman commented 1 month ago

I expected that this JSON a response because authentication failed {"error":"Not Found"}

This is the JSON content { "1.14.0": "https://github.com/privateAccount/apollo-ios-xcframework/raw/main/release/1.14.0/Apollo.xcframework.zip" }