Alamofire "Generic Response Object Serialization" does not compile - xcode7

I upgraded from Swift 1.2, xcode 6.4 and Alamofire 1.x to:
Swift 2.0, xcode 7, alamofire 2.0.2 via Carthage.
My old "Generic Response Object Serialization" broke, so I did a cut n paste from the readme, but it wont compile, it gives me the errors in the image below, help please!

Figured it out. The current state of the README is a mix (mess?) of 2.0 (install instructions) and 3.0-beta (code example)
Solution was to use the code example from the README at the 2.0.2 release, so it was due to my bad knowledge of how github works.

Related

libGDX with Kotlin error "org.jetbrains.kotlin.kapt.idea.KaptModelBuilderService"

I'm trying to create libGDX with Kotlin option. After creating a project with libGDX, opening it with Android Studio. IDE give the error below:
Error:Could not initialize class
org.jetbrains.kotlin.kapt.idea.KaptModelBuilderService
What wrong with my project? Thanks in advance.
Error due to Version mismatch between Kotlin plugin and Gradle.
Here is the similar issue tracked at JetBrains issue tracker, also there is post for the same issue.
Try to disable Kotlin plugin and update to latest version.
I've no issue while using Kotlin in Android Studio 3.0.1.
I'm using :
Gradle version 3.3
Kotlin plugin version 1.2.10-release-studio3.0-1
Kotlin version 1.2.10
Android-gradle-plugin version 2.3.3
LibGDX 1.9.8

Chrome dev editor can't get packages, and can't run the basic app

I have installed a Chrome dev editor tool, created a dart web app, and I unable to run it I get this error when I try to run it image
Then I tried to get the packages "Pub Get" and get this error image
I installed the dart via brew still the same.
I don't know what exactly causes your first error message but the 2nd is caused by an old Dart SDK version. Dart before about 1.8.0 isn't able to parse version constraints using the shorthand notation ^

Cannot get -fembed-bitcode to work

The current error that I'm getting in Xcode 7.1.1 is:
ld: bitcode bundle could not be generated because
'/Users/--/Carthage/Build/tvOS/SwiftyJSON.framework/SwiftyJSON' was built without full bitcode. All frameworks and dylibs for bitcode must be generated from Xcode Archive or Install build for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Everyone says to add "-fembed-bitcode" to Other C Flags. I've done that and I'm still getting the same error. I'm not sure if it's in how I'm adding it or what.
I'm currently adding it to Other C Flags > Release > Any tvOS SDK
Any ideas as to why I'm still getting the error?
As far as I know, you won't be able to re build that framework with bitcode enabled if you don't have the source.
It happened to me that i needed to rebuild from source a few frameworks that luckily were open source.
I looked into SwiftyJSON and it looks like there is already support for bitcode, try updating to the latest version https://github.com/SwiftyJSON/SwiftyJSON
Also, by any chance are you getting SwiftyJSON via Carthage? They updated their release with support for bitcode too. https://github.com/Carthage/Carthage

java.lang.NoClassDefFoundError when already imported jar files to android studio

I receive the error java.lang.NoClassDefFoundError: org.codehaus.jackson.map.ObjectMapper even after adding the Jackson jar files. In Android Studio?
Also tried a few links. Namely this, which did not help.
Edit:
After some research I discovered the root of the error. The dynamo-geo.jar library that is provided by Amazon is inherently flawed in that it refers to some sort of outdated Jackson version. Upon looking in I can see that the class that is called geoJsonMapper refers to a deprecated version of ObjectMapper from the old 1.x.x versions of Jackson. I opened source code from dynamo-geo.jar here and I edited the ObjectMapper import from the outdated version to import com.fasterxml.jackson.databind.ObjectMapper;.
Now the issue I have is I am not sure if there is a way to compile a JAR file in Android Studio? In order to get the newly updated library into my other Android Studio project?
EDIT:
Solution - read this.
If you are using Jackson 2 then you will want to import com.fasterxml.jackson.databind.ObjectMapper instead of org.codehaus.jackson.map.ObjectMapper. You may also have a mix of Jackson 1 and Jackson 2 JAR files in your classpath.
You should be able to fork dynamodb-geo, make your changes, and use Maven to package the new JAR file (run the command mvn clean package). The new JAR file would be located in /dynamodb-geo/target/.

VS 2015 + universal app + mvvmcross 3.5.0 + sqlite

I started a new universal app using vs 2015 ctp 5, mvvmcross 3.5.0 + sqllite plugin 3.5.0.
I am using the famous N=.... serie of vídeos, especificaly n=12 Collect A Bull as a reference.
I created a new pcl Project as a core and a universal app Project(3 projects), added nuget packages to core , wp8.1 and to w8.1, everything good so far.
Then i copied the service folder from N=12 sample, added related nuget packages.
My trouble is: at this line _connection = factory.Create("collect.sql"); on repository i've got a exception :
A first chance exception of type 'System.DllNotFoundException' occurred in Cirrious.MvvmCross.Plugins.Sqlite.WindowsCommon.DLL
Additional information: Unable to load DLL 'sqlite3': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
The message is pretty clear cannot found sqlite3.dll i've seen some articles to add file and reference manually, but i did not see nothing on the vídeo, and the N-12 sample runs ok?
How the sample can access the mentioned sqlite dll, it could be related to universal app?
By comparison i found a missing reference in wp project: Community.CsharpSqlite.WP7 i added manually but does not solve.
Any suggestions?
So, to solve this i just have to download from http://www.sqlite.org/download.html and add reference manually
Thanks to mohibsheth on jabbr room
Try adding
Install-Package MvvmCross.HotTuna.Plugin.Sqlite -Version 3.2.1
from package manager console. It worked for me.
If directly it didn't worked, then remove all the packages and add all packages of version 3.2.2 like :
Install-Package MvvmCross -Version 3.2.2
Install-Package MvvmCross.HotTuna.Plugin.FieldBinding -Version 3.2.2
Install-Package MvvmCross.HotTuna.Plugin.Messenger -Version 3.2.2
Still having problem with the packages?Uncheck Silverlight from Core project properties.
Version 3.5.0 raising problems for me too.
Hope this helps.
I would check out the SQLite.Net-PCL project. I've heard of some success in people using that although I have not personally used it yet.
I just submitted a pull request to the MvvmCross Community SQLite project to update it to MvvmCross 3.5 and unified iOS API - so you could give that a try as well. There is no new NuGet for that yet however. You'll need to clone the project and compile it yourself.