I have been developing apps in Xamarin.iOS for quite a while. I have an indie version of the license. Today I updated Xamarin Studio to the latest version.
When I try to debug the app it gives me the following errors:
/Users/crs/Projects/MyIkubiOS/MyIkubiOS/MyIkubiOS.csproj (Build) ->
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.iOS.Common.targets (_CompileToNative target) ->
MTOUCH: error MT9002: Linking with native code requires Indie (or higher) license.
MTOUCH: error MT9002: Linking with native code requires Indie (or higher) license.
MTOUCH: error MT9007: P/invoking `System.Int32 FFImageLoading.PlatformPerformance::task_info(System.IntPtr,System.Int32,FFImageLoading.PlatformPerformance/mach_task_basic_info&,System.Int32&)` from `System.Nullable`1<FFImageLoading.PlatformPerformance/mach_task_basic_info> FFImageLoading.PlatformPerformance::GetResidentSize()` (user code) requires Indie (or higher) license.
MTOUCH: error MT9007: P/invoking `System.IntPtr ApiDefinition.Messaging::IntPtr_objc_msgSend(System.IntPtr,System.IntPtr)` from `System.Void WebP.Touch.WebPDecoder::.ctor()` (user code) requires Indie (or higher) license.
MTOUCH: error MT9007: P/invoking `System.IntPtr ApiDefinition.Messaging::IntPtr_objc_msgSendSuper(System.IntPtr,System.IntPtr)` from `System.Void WebP.Touch.WebPDecoder::.ctor()` (user code) requires Indie (or higher) license.
MTOUCH: error MT9007: P/invoking `System.IntPtr ApiDefinition.Messaging::IntPtr_objc_msgSend_IntPtr(System.IntPtr,System.IntPtr,System.IntPtr)` from `UIKit.UIImage WebP.Touch.WebPDecoder::ImageWithWebP(System.String)` (user code) requires Indie (or higher) license.
MTOUCH: error MT9007: P/invoking `System.IntPtr ApiDefinition.Messaging::IntPtr_objc_msgSendSuper_IntPtr(System.IntPtr,System.IntPtr,System.IntPtr)` from `UIKit.UIImage WebP.Touch.WebPDecoder::ImageWithWebP(System.String)` (user code) requires Indie (or higher) license.
MTOUCH: error MT9007: P/invoking `System.IntPtr ApiDefinition.Messaging::IntPtr_objc_msgSend_IntPtr(System.IntPtr,System.IntPtr,System.IntPtr)` from `UIKit.UIImage WebP.Touch.WebPDecoder::ImageWithWebPData(Foundation.NSData)` (user code) requires Indie (or higher) license.
MTOUCH: error MT9007
The official pricing page in Xamarin.iOS has information about Xamarin Studio and Visual Enterprise but does not has information about Indie or Business Licenses
Update Xamarin.iOS as well as Xamarin Studio. These errors are gone in the latest version.
Related
Does anyone have any experience with Javacard tools 3.1?
I've run through the "installation and getting started": https://docs.oracle.com/en/java/javacard/3.1/guide/introduction.html
I can build / run / simulate and debug the demos in eclipse. Generating CAP files for 3.1 and 3.0.5
But when I run the converter to target 3.0.4 files, there is a verification error:
[ INFO: ] Converting CAP file HelloWorld with target version 3.0.4
[ INFO: ] Converter [v3.1.0]
[ INFO: ] Copyright (c) 1998, 2021, Oracle and/or its affiliates. All rights reserved.
parsing C:\Program Files (x86)\Oracle\Java Card Development Kit Simulator 3.1.0\samples\classic_applets\HelloWorld\applet\bin\com\oracle\jcclassic\samples\helloworld\HelloWorld.class
converting com.oracle.jcclassic.samples.helloworld.HelloWorld
writing C:\Program Files (x86)\Oracle\Java Card Development Kit Simulator 3.1.0\samples\classic_applets\HelloWorld\applet\deliverables\HelloWorld\com\oracle\jcclassic\samples\helloworld\javacard\helloworld.exp
writing C:\Program Files (x86)\Oracle\Java Card Development Kit Simulator 3.1.0\samples\classic_applets\HelloWorld\applet\deliverables\HelloWorld\com\oracle\jcclassic\samples\helloworld\javacard\helloworld.jca
Verifier Error: Version number mismatch on imported package javacard/framework (AID a0:0:0:0:62:1:1):
imported version is 1.6, export file version is 1.5
Verification failed
[ INFO: ] conversion completed with 1 errors and 0 warnings.
"C:\Program Files\Java\jdk-11.0.10\bin\java" "-Djc.home=C:\java\java_card_tools-win-bin-b_108-06_jan_2021\bin\\.." -classpath "C:\java\java_card_tools-win-bin-b_108-06_jan_2021\bin\\..\lib\api_classic_annotations-3.1.0.jar;C:\java\java_card_tools-win-bin-b_108-06_jan_2021\bin\\..\lib\api_classic-3.1.0.jar;C:\java\java_card_tools-win-bin-b_108-06_jan_2021\bin\\..\lib\tools.jar;C:\java\java_card_tools-win-bin-b_108-06_jan_2021\bin\\..\lib\json.jar;C:\java\java_card_tools-win-bin-b_108-06_jan_2021\bin\\..\lib\jctasks_tools.jar;C:\java\java_card_tools-win-bin-b_108-06_jan_2021\bin\\..\lib\commons-logging-1.2-9f99a00.jar;C:\java\java_card_tools-win-bin-b_108-06_jan_2021\bin\\..\lib\commons-cli-1.4.jar;C:\java\java_card_tools-win-bin-b_108-06_jan_2021\bin\\..\lib\asm-8.0.1.jar;" com.sun.javacard.converter.Main -config "C:\Program Files (x86)\Oracle\Java Card Development Kit Simulator 3.1.0\samples\classic_applets\HelloWorld\applet\configurations\HelloWorld.conf"
Has anyone seen this, or any idea what it could be? I only have the basic install from "Guide" link.
I'm setting up an android project from another company which involves selfmade C++ cross platform libraries. For an older version of these libraries an complete app project was made in java with a jni interface to access these libraries, which are stored as their own modules with gradle.build files. The goal is to get the app compiling for arm64-v8a architecture because of the Google requirements for app update.
The project is set up with:
gradle experimental plugin 0.11.0
gradle plugin 4.1
boost 1.64.0 for armeabi-v7a (got arm64-v8a precompiled libraries as replacement)
opencv 2.4.13.2
ndk r15c
I checked all dependencies for getting a arm64 pendant, which was only needed for the boost dependencies.
I tried changing the ABI list which is used for every project to include all architectures or all seperatly. I tried using other ndk versions. What might help but i didn't accomplish was changing the experimental gradle plugin to the normal plugin but i couldn't get that right.
I expected some compiling or linking errors but it only tells me "ABI filter 'arm64-v8a' is no longer supported in NDK version r15.2.4203891.". If i try other architectures i get the same error, but instead of the 'arm64-v8a' the current selected architecture. If i give an invalid architecture it changes to "Target ABI 'hello' is not supported.", so it recognizes the architecture i think.
Stacktrace of first error:
A problem occurred configuring project ':app'.
Exception thrown while executing model rule: NdkComponentModelPlugin.Rules#configureNativeLibrary(ModelMap, NdkConfig, NdkHandler, ModelMap, File, ServiceRegistry) > create(livestage) > withType()
Exception thrown while executing model rule: NdkComponentModelPlugin.Rules#configureNativeLibrary(ModelMap, NdkConfig, NdkHandler, ModelMap, File, ServiceRegistry) > create(lib-jni-cxx) > withType()
Exception thrown while executing model rule: NdkComponentModelPlugin.Rules#configureNativeBinary(BinaryContainer, ModelMap, NdkConfig, NdkHandler) > withType()
ABI filter 'arm64-v8a' is no longer supported in NDK version r15.2.4203891.
The experimental plugin hasn't been supported for years, so it's no surprise that it doesn't work. Migrate to externalNativeBuild: https://developer.android.com/studio/projects/add-native-code
Currently I'm trying to upgrade a Xamarin.Forms project to use .NET Standard 2.0. This went fine for Android but I'm getting stuck with the iOS version. To build iOS we use a On-Primise MacMini as build agent int VSTS. Now I'm getting the error below when building the solution.
=================================
.... way more erros like below ...
2017-11-21T11:39:43.8920830Z ViewModels/DashboardViewModel.cs(66,35): error CS0012: The type 'Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. [/Users/Admin/BuildAgent/_work/3/s/xxx.App/xxx.Core.csproj]
2017-11-21T11:39:43.9014700Z ViewModels/DashboardViewModel.cs(66,73): error CS0012: The type 'Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. [/Users/Admin/BuildAgent/_work/3/s/xxx.App/xxx.Core.csproj]
2017-11-21T11:39:43.9036150Z ViewModels/DashboardViewModel.cs(66,93): error CS0012: The type 'Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. [/Users/Admin/BuildAgent/_work/3/s/xxx.App/xxx.Core.csproj]
2017-11-21T11:39:43.9053280Z
2017-11-21T11:39:43.9083060Z 6 Warning(s)
2017-11-21T11:39:43.9107960Z 47 Error(s)
2017-11-21T11:39:43.9116100Z
2017-11-21T11:39:43.9131830Z Time Elapsed 00:00:59.23
2017-11-21T11:39:43.9327960Z ##[error]Xamarin.iOS task failed with error Error: /Library/Frameworks/Mono.framework/Versions/Current/Commands/msbuild failed with return code: 1. For guidance on setting up the build definition, see https://go.microsoft.com/fwlink/?LinkId=760847.
2017-11-21T11:39:43.9575950Z [command]/usr/bin/security delete-keychain /Users/Admin/BuildAgent/_work/3/s/_xamariniostasktmp.keychain
2017-11-21T11:39:44.2658340Z ##[section]Finishing: Build Xamarin.iOS solution xxx.sln
=================================
This output comes from the following build definition:
Now I've searched the internet and found a view possible solutions:
Update Visual Studio on the MacMini
Update XCode on the MacMini
Install .NET Core 2.x SDK on the MacMini
Add .NET Standard 2.x NuGet package to Xamarin.IOS project
Add .NET Standard Library NuGet pre-release package to Xamarin.iOS project (not possible)
Manually reference netstandard.dll to the Xamarin.iOS project
Remove install argument (not using it)
But all of this was not enough to fix the issue. Now I'm not a expert in using a Mac. Actually I never touched one before this issue... So I might have done something wrong here...
But I've been able to get some version information about all products on the MacMini:
========= Visual Studio =========
Visual Studio Community 2017 for Mac
Version 7.2.2 (build 11)
Installation UUID: b43353ef-651c-468b-8b7d-3f1714586419
Runtime:
Mono 5.4.1.6 (2017-06/1f4613aa1ac) (64-bit)
GTK+ 2.24.23 (Raleigh theme)
Package version: 504010006
NuGet
Version: 4.3.1.4445
.NET Core
Runtime: /usr/local/share/dotnet/dotnet
Runtime Version: 2.0.3
SDK: /usr/local/share/dotnet/sdk/2.0.3/Sdks
SDK Version: 2.0.3
MSBuild SDKs: /Library/Frameworks/Mono.framework/Versions/5.4.1/lib/mono/msbuild/15.0/bin/Sdks
Xamarin.Profiler
Version: 1.5.6
Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler
Xamarin.Android
Not Installed
Xamarin Inspector
Not Installed
Apple Developer Tools
Xcode 9.1 (13532)
Build 9B55
Xamarin.iOS
Version: 11.3.0.47 (Visual Studio Community)
Hash: 51128b8c
Branch: xcode9.1
Build date: 2017-10-31 22:42:13-0400
Xamarin.Mac
Xamarin.Mac not installed. Can't find /Library/Frameworks/Xamarin.Mac.framework/Versions/Current/Version.
Build Information
Release ID: 702020011
Git revision: b604c37c5a4a2f0919b45ffbe2aaad9fe040af31
Build date: 2017-11-01 08:31:43-04
Xamarin addins: d57dc14cbd4eb166ee62bab585965ab78d3650bc
Build lane: monodevelop-lion-d15-4
Operating System
Mac OS X 10.12.6
Darwin 16.7.0 Darwin Kernel Version 16.7.0
Wed Oct 4 00:17:00 PDT 2017
root:xnu-3789.71.6~1/RELEASE_X86_64 x86_64
============= XCode =============
XCode for Mac
Version 9.1 (9B55)
============= Mono ==============
Mono JIT compiler version 5.4.1.6 (2017-06/1f4613aa1ac Wed Oct 18 09:31:57 EDT 2017)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
TLS: normal
SIGSEGV: altstack
Notification: kqueue
Architecture: amd64
Disabled: none
Misc: softdebug
LLVM: yes(3.6.0svn-mono-master/8b1520c8aae)
GC: sgen (concurrent by default)
========= .NET Core SDK =========
.NET Core SDK
Version 2.0.3
=================================
The project can be build on the MacMini itself. Only the VSTS task keeps failing...
Does someone have any idea's left which can help me solve my issue?
Kind regards,
Jop
Everything started to work fine after we manually edited the .NET Standard 2.0 project file (*.csproj) and add a PackageReference by hand.
<ItemGroup>
...
<PackageReference Include="NETStandard.Library" version="2.0.0" />
...
</ItemGroup>
I'm failing trying to migrate my Xamarin.IOS to use the new unified API using the automatic Xamarin Studio tools.
The solution is composed of 2 project. One PCL project and one Xamarin.IOS project that reference the PCL. When I try to build the project the following error appears:
.../FoodTruckiOS/MenuViewController.cs(10,10):
Error CS0012: The type `System.Object' is defined in an assembly that is not referenced.
Consider adding a reference to assembly `System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' (CS0012) (FoodTruckiOS)
The line that throws the error in a ViewController has:
public MenuOption menuOption { get; set;}
MenuOption is a class a created in the PCL.
My version stack is:
=== Xamarin Studio ===
Version 5.7 (build 661)
Installation UUID: 242e1f09-6bb4-4b18-9d6c-3f8ec2ebc716
Runtime:
Mono 3.12.0 ((detached/a813491)
GTK+ 2.24.23 (Raleigh theme)
Package version: 312000068
=== Apple Developer Tools ===
Xcode 6.1.1 (6611)
Build 6A2008a
=== Xamarin.Mac ===
Not Installed
=== Xamarin.iOS ===
Version: 8.2.0.207 (Indie Edition)
Hash: 3bf072d
Branch:
Build date: 2014-10-15 21:44:26-0400
=== Xamarin.Android ===
Not Installed
=== Build Information ===
Release ID: 507000661
Git revision: b70bab61da996da29045ea8ee8aed1a6faedbe78
Build date: 2015-01-05 16:31:31-05
Xamarin addins: 82f6c71490562d6cd125a09287f441902fdac3d7
=== Operating System ===
Mac OS X 10.10.1
Darwin Franciscos-Mini.lan 14.0.0 Darwin Kernel Version 14.0.0
Fri Sep 19 00:26:44 PDT 2014
root:xnu-2782.1.97~2/RELEASE_X86_64 x86_64
Any idea what is causing the problem?
That should not happen but the software versions you're using a not a common match.
IOW you should be using Xamarin.iOS 8.6, which has the final, supported version of the unified API. The version above (Version: 8.2.0.207) has a preview of the unified API (and most recent binaries/components won't be compatible with it).
The same applies to Xamarin Studio 5.7 update tool. It was made to work with XI 8.6 (not the older versions) and that might give you close, but not perfect, match when updating a project/solution.
Using Xcode 5.0.1 with Xamarin studio Version 4.0.13 (build 38) and Xamarin.iOS
Version: 6.2.4.2
I am getting this error when trying to compile my project:
error MT2002: Failed to resolve "System.Void System.Runtime.CompilerServices.ExtensionAttribute::.ctor()" reference from "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
How can I solve it?
The reason for this error is that between .NET 2.0 (including Silverlight) and 4.0 the [Extension] attribute moved from System.Core.dll to mscorlib.dll.
Xamarin.iOS 6.2 (and earlier) were based on a superset of Silverlight (aka the 2.1 profile). So the [Extension] attribute was located in System.Core.dll.
Since Xamarin.iOS 6.3+ the product was re-based on Mono 3.0 and the profile was updated to use the newer 4.0/4.5 profile. Now the [Extension] attribute is located in mscorlib.dll.
In your case you had a binary assembly compiled against the newer (4.0) profile. That assembly had a reference to mscorlib, Version=4.0.0.0, ... to find [Extension] and would lead to errors if built against the older Xamarin.iOS (6.2 and earlier).
As you found out the easy solution was to update to the latest Xamarin.iOS release. Another way to solve this (without updating Xamarin.iOS) would have been to rebuild (if you have the source) the binary assemblies of your project against the assemblies (BCL) shipped with Xamarin.iOS 6.2.