Closed Isuru-Nanayakkara closed 7 years ago
+1 facing the same problem
I sifted through the pull requests and saw that this issue is already fixed. The problem is that the podspec file is not yet updated. So it's pulling the old source files with the issue when installed via CocoaPods. You'll have to update the version in the podspec file and this will go away. In the meantime I can install the library like this pod 'MessagePack.swift', :git => 'https://github.com/a2/MessagePack.swift.git', :branch => 'master'
.
Version 2.0.1 pushed. Please file a new issue if problem persists. Happy holidays 🎄
All good now. Thanks! Happy holidays to you too!
Hi,
I'm encountering an issue unpacking a msgpack payload in Swift 3.
I'm getting a msgpack payload from an API and I'm using this library to unpack it. It used to work perfectly fine back in Swift 2 with the v1.2. I have created a sample payload as a byte array below.
Like I mentioned earlier, the unpacking happened successfully without error in Swift 2. I was using the v1.2 of this library. Here I tested it again with a sample Xcode 7.3 project.
When I converted the project to Swift 3 and upgraded the library to v2.0 and ran it against the same payload, it would fail with the error invalidArgument. I can't figure out why. All I could pin point was the error was occurring within the
unpackString
method.I attached the Swift 3 converted Xcode 8 project as well. Same code. But the error occurs here.