I can't run any project for iOS in Xamarin, It shows me the following error "Error Initialized task IBTool: Not registered task IBToll", how I can resolve this error?
I use Xamarin Studio 5.9.4, XCode 5.0, Xamarin Ios 8.10.3.2 (Business Edition) and S.O Mac Os X 10.9.5
I hope you can help me
UPGRADE
=== Xamarin Studio ===
Version 5.9.4 (build 5)
Installation UUID: 616c0f77-e96a-4f5d-a6f7-c303c7e143c3
Runtime:
Mono 4.0.2 ((detached/c99aa0c)
GTK+ 2.24.23 (Raleigh theme)
Package version: 400020005
=== Xamarin.Android ===
Version: 5.1.4.16 (Business Edition)
Android SDK: /Users/student/Library/Developer/Xamarin/android-sdk-mac_x86
Supported Android versions:
2.3 (API level 10)
4.0.3 (API level 15)
Java SDK: /usr
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode)
=== Xamarin Android Player ===
Not Installed
=== Apple Developer Tools ===
Xcode 5.0 (3332.22)
Build 5A1412
=== Xamarin.iOS ===
Version: 8.10.3.2 (Business Edition)
Hash: 8b265d6
Branch: master
Build date: 2015-06-30 15:19:13-0400
=== Xamarin.Mac ===
Not Installed
=== Build Information ===
Release ID: 509040005
Git revision: 8010a90f6e246b32364e3fb46ef2c9d1be9c9a2b
Build date: 2015-06-08 16:52:06-04
Xamarin addins: 7e93e9c3503f28770f23ce1b7eafd829919f18e8
=== Operating System ===
Mac OS X 10.9.5
Darwin Students-Mac.local 13.4.0 Darwin Kernel Version 13.4.0
Sun Aug 17 19:50:11 PDT 2014
root:xnu-2422.115.4~1/RELEASE_X86_64 x86_64
Related
Ok. I'm throwing in the towel cause I can't seem to solve this problem. Initially I didn't have cocoapods installed correctly. I followed some steps to uninstall it and then run 'sudo gem install cocoapods'. Now if I type 'which pod' I get a response '/usr/local/bin/pod. If I run flutter doctor it reports everything is ok:
> [exec] [✓] Flutter (Channel stable, 2.2.3, on macOS 11.2.1 20D75
> darwin-x64, locale en-US)
> [exec] • Flutter version 2.2.3 at /usr/local/lib/flutter
> [exec] • Framework revision f4abaa0735 (6 weeks ago), 2021-07-01 12:46:11 -0700
> [exec] • Engine revision 241c87ad80
> [exec] • Dart version 2.13.4
> [exec]
> [exec] [✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
> [exec] • Android SDK at /Users/rms_licenses/Library/Android/sdk
> [exec] • Platform android-30, build-tools 29.0.2
> [exec] • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
> [exec] • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08)
> [exec] • All Android licenses accepted.
> [exec]
> [exec] [!] Xcode - develop for iOS and macOS
> [exec] • Xcode at /Applications/Xcode.app/Contents/Developer
> [exec] • Xcode 12.5.1, Build version 12E507
> [exec] * CocoaPods version 1.10.2
> [exec]
> [exec] [✓] Chrome - develop for the web
> [exec] • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
> [exec]
> [exec] [✓] Android Studio (version 3.0)
> [exec] • Android Studio at /Applications/Android Studio.app/Contents
> [exec] • Flutter plugin can be installed from:
> [exec] 🔨 https://plugins.jetbrains.com/plugin/9212-flutter
> [exec] • Dart plugin can be installed from:
> [exec] 🔨 https://plugins.jetbrains.com/plugin/6351-dart
> [exec] • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08)
> [exec]
> [exec] [✓] Connected device (2 available)
> [exec] • macOS (desktop) • macos • darwin-x64 • macOS 11.2.1 20D75 darwin-x64
> [exec] • Chrome (web) • chrome • web-javascript • Google Chrome 90.0.4430.212
However if I run flutter doctor through my Jenkins job:
[exec] [✓] Flutter (Channel stable, 2.2.3, on macOS 11.2.1 20D75 darwin-x64, locale en-US)
[exec] • Flutter version 2.2.3 at /usr/local/lib/flutter
[exec] • Framework revision f4abaa0735 (6 weeks ago), 2021-07-01 12:46:11 -0700
[exec] • Engine revision 241c87ad80
[exec] • Dart version 2.13.4
[exec]
[exec] [✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[exec] • Android SDK at /Users/rms_licenses/Library/Android/sdk
[exec] • Platform android-30, build-tools 29.0.2
[exec] • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
[exec] • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08)
[exec] • All Android licenses accepted.
[exec]
[exec] [!] Xcode - develop for iOS and macOS
[exec] • Xcode at /Applications/Xcode.app/Contents/Developer
[exec] • Xcode 12.5.1, Build version 12E507
[exec] ✗ CocoaPods not installed.
[exec] CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side.
[exec] Without CocoaPods, plugins will not work on iOS or macOS.
[exec] For more info, see https://flutter.dev/platform-plugins
[exec] To install see https://guides.cocoapods.org/using/getting-started.html#installation for instructions.
[exec]
[exec] [✓] Chrome - develop for the web
[exec] • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[exec]
[exec] [✓] Android Studio (version 3.0)
[exec] • Android Studio at /Applications/Android Studio.app/Contents
[exec] • Flutter plugin can be installed from:
[exec] 🔨 https://plugins.jetbrains.com/plugin/9212-flutter
[exec] • Dart plugin can be installed from:
[exec] 🔨 https://plugins.jetbrains.com/plugin/6351-dart
[exec] • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08)
[exec]
[exec] [✓] Connected device (2 available)
[exec] • macOS (desktop) • macos • darwin-x64 • macOS 11.2.1 20D75 darwin-x64
[exec] • Chrome (web) • chrome • web-javascript • Google Chrome 90.0.4430.212
We can build the ios app just fine through the terminal (& manually through xcode) but I'm stuck on this cocoapods thing. I suspect maybe its a permission thing but not sure. I've updated Flutter, xcode. When building through the terminal I see a command called "Which pod" but I doesn't seem to work when going through Jenkins. Instead it says this:
> [exec] [ +4 ms] Warning: CocoaPods not installed. Skipping pod install.
> [exec] CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage
> on the Dart side.
> [exec] Without CocoaPods, plugins will not work on iOS or macOS.
> [exec] For more info, see https://flutter.dev/platform-plugins
> [exec] To install see https://guides.cocoapods.org/using/getting-started.html#installation
> for instructions.
Any ideas on why it won't work through Jenkins but fine through the terminal?
Thx for any help you might give.
~jeff
Edit:
I changed the permissions on the flutter directory and it now says:
> [exec] [ ] Found plugin video_player at
> /usr/local/lib/flutter/.pub-cache/hosted/pub.dartlang.org/video_player-2.1.1/
> CocoaPods is used to retrieve the iOS and macOS platform side's plugin
> code that responds to your plugin usage on the Dart side.
> [exec]
> [exec] [ ] Found plugin video_player_web at /usr/local/lib/flutter/.pub-cache/hosted/pub.dartlang.org/video_player_web-2.0.0/
> Without CocoaPods, plugins will not work on iOS or macOS.
> [exec]
> [exec] For more info, see https://flutter.dev/platform-plugins
> [exec] To install see https://guides.cocoapods.org/using/getting-started.html#installation
> for instructions.
> [exec]
> [exec] [ ] Found plugin wakelock at /usr/local/lib/flutter/.pub-cache/hosted/pub.dartlang.org/wakelock-0.4.0/[
> +5 ms] CocoaPods not installed or not in valid state.
> [exec]
> [exec] [ ] Found plugin wakelock_macos at /usr/local/lib/flutter/.pub-cache/hosted/pub.dartlang.org/wakelock_macos-0.1.0/[
> ]
> [exec] [ ] Found plugin wakelock_web at /usr/local/lib/flutter/.pub-cache/hosted/pub.dartlang.org/wakelock_web-0.2.0/
> [exec]
> [exec] [ ] Found plugin webview_flutter at /usr/local/lib/flutter/.pub-cache/hosted/pub.dartlang.org/webview_flutter-2.0.8/
> #0 throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
> [exec]
> [exec] [ +11 ms] executing: which pod
> [exec] [ +11 ms] "flutter ios" took 2,936ms.
> [exec] #1 CocoaPods.processPods (package:flutter_tools/src/macos/cocoapods.dart:169:9)
> [exec] <asynchronous suspension>
I had the same problem. In my case, CocoaPods was installed under /usr/local/bin but that wasn't in my $PATH when running a Jenkins build.
Once I added it to my path in Jenkins, it started working.
I have a project that is working perfectly in any version below api 29.
When i try to run in a Android 10 device the app crashes after show the splash screen, debugger show this error:
Java.Lang.RuntimeException: Binary XML file line #17 in com.panterafood.garcom:layout/abc_screen_simple: Binary XML file line #17 in com.panterafood.garcom:layout/abc_screen_simple: Error inflating class android.support.v7.widget.FitWindowsLinearLayout
at Java.Interop.JniEnvironment+InstanceMethods.CallNonvirtualVoidMethod (Java.Interop.JniObjectReference instance, Java.Interop.JniObjectReference type, Java.Interop.JniMethodInfo method, Java.Interop.JniArgumentValue* args) [0x0008e] in <fc4bff518fb145b08cf1d4e7e1c0cbf6>:0
at Java.Interop.JniPeerMembers+JniInstanceMethods.InvokeVirtualVoidMethod (System.String encodedMember, Java.Interop.IJavaPeerable self, Java.Interop.JniArgumentValue* parameters) [0x0005d] in <fc4bff518fb145b08cf1d4e7e1c0cbf6>:0
at Android.App.Activity.SetContentView (System.Int32 layoutResID) [0x00022] in <4a76267a9af54c85b9b3584cc8303037>:0
at Garcom.Activities.BaseActivity.OnCreate (Android.OS.Bundle bundle) [0x00040] in <d242ef43b0c34a7b9894c0c17a1c6cf5>:0
at Garcom.Activities.Login.OnCreate (Android.OS.Bundle savedInstanceState) [0x00001] in <d242ef43b0c34a7b9894c0c17a1c6cf5>:0
at Android.App.Activity.n_OnCreate_Landroid_os_Bundle_ (System.IntPtr jnienv, System.IntPtr native__this, System.IntPtr native_savedInstanceState) [0x0000f] in <4a76267a9af54c85b9b3584cc8303037>:0
at at (wrapper dynamic-method) Android.Runtime.DynamicMethodNameCounter.1(intptr,intptr,intptr)
at android.view.InflateException: Binary XML file line #17 in com.panterafood.garcom:layout/abc_screen_simple: Binary XML file line #17 in com.panterafood.garcom:layout/abc_screen_simple: Error inflating class android.support.v7.widget.FitWindowsLinearLayout
at Caused by: android.view.InflateException: Binary XML file line #17 in com.panterafood.garcom:layout/abc_screen_simple: Error inflating class android.support.v7.widget.FitWindowsLinearLayout
at Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object java.lang.reflect.Field.get(java.lang.Object)' on a null object reference
at at uk.co.chrisjenx.calligraphy.ReflectionUtils.getValue(ReflectionUtils.java:25)
at at uk.co.chrisjenx.calligraphy.CalligraphyLayoutInflater.createCustomViewInternal(CalligraphyLayoutInflater.java:203)
at at uk.co.chrisjenx.calligraphy.CalligraphyLayoutInflater.access$000(CalligraphyLayoutInflater.java:20)
at at uk.co.chrisjenx.calligraphy.CalligraphyLayoutInflater$PrivateWrapperFactory2.onCreateView(CalligraphyLayoutInflater.java:302)
at at android.view.LayoutInflater$FactoryMerger.onCreateView(LayoutInflater.java:239)
at at android.view.LayoutInflater.tryCreateView(LayoutInflater.java:1069)
at at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:997)
at at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:961)
at at android.view.LayoutInflater.inflate(LayoutInflater.java:659)
at at uk.co.chrisjenx.calligraphy.CalligraphyLayoutInflater.inflate(CalligraphyLayoutInflater.java:60)
at at android.view.LayoutInflater.inflate(LayoutInflater.java:534)
at at android.view.LayoutInflater.inflate(LayoutInflater.java:481)
at at android.support.v7.app.AppCompatDelegateImpl.createSubDecor(AppCompatDelegateImpl.java:631)
at at android.support.v7.app.AppCompatDelegateImpl.ensureSubDecor(AppCompatDelegateImpl.java:518)
at at android.support.v7.app.AppCompatDelegateImpl.setContentView(AppCompatDelegateImpl.java:466)
at at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:140)
at at crc64f084fe566d431cdf.Login.n_onCreate(Native Method)
at at crc64f084fe566d431cdf.Login.onCreate(Login.java:30)
at at android.app.Activity.performCreate(Activity.java:7802)
at at android.app.Activity.performCreate(Activity.java:7791)
at at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1299)
at at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3245)
at at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3409)
at at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:83)
at at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2016)
at at android.os.Handler.dispatchMessage(Handler.java:107)
at at android.os.Looper.loop(Looper.java:214)
at at android.app.ActivityThread.main(ActivityThread.java:7356)
at at java.lang.reflect.Method.invoke(Native Method)
at at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
at at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)
Java.Lang.RuntimeException: Binary XML file line #17 in com.panterafood.garcom:layout/abc_screen_simple: Binary XML file line #17 in com.panterafood.garcom:layout/abc_screen_simple: Error inflating class android.support.v7.widget.FitWindowsLinearLayout
at Java.Interop.JniEnvironment+InstanceMethods.CallNonvirtualVoidMethod (Java.Interop.JniObjectReference instance, Java.Interop.JniObjectReference type, Java.Interop.JniMethodInfo method, Java.Interop.JniArgumentValue* args) [0x0008e] in <fc4bff518fb145b08cf1d4e7e1c0cbf6>:0
at Java.Interop.JniPeerMembers+JniInstanceMethods.InvokeVirtualVoidMethod (System.String encodedMember, Java.Interop.IJavaPeerable self, Java.Interop.JniArgumentValue* parameters) [0x0005d] in <fc4bff518fb145b08cf1d4e7e1c0cbf6>:0
at Android.App.Activity.SetContentView (System.Int32 layoutResID) [0x00022] in <4a76267a9af54c85b9b3584cc8303037>:0
at Garcom.Activities.BaseActivity.OnCreate (Android.OS.Bundle bundle) [0x00040] in <d242ef43b0c34a7b9894c0c17a1c6cf5>:0
at Garcom.Activities.Login.OnCreate (Android.OS.Bundle savedInstanceState) [0x00001] in <d242ef43b0c34a7b9894c0c17a1c6cf5>:0
at Android.App.Activity.n_OnCreate_Landroid_os_Bundle_ (System.IntPtr jnienv, System.IntPtr native__this, System.IntPtr native_savedInstanceState) [0x0000f] in <4a76267a9af54c85b9b3584cc8303037>:0
at at (wrapper dynamic-method) Android.Runtime.DynamicMethodNameCounter.1(intptr,intptr,intptr)
at android.view.InflateException: Binary XML file line #17 in com.panterafood.garcom:layout/abc_screen_simple: Binary XML file line #17 in com.panterafood.garcom:layout/abc_screen_simple: Error inflating class android.support.v7.widget.FitWindowsLinearLayout
at Caused by: android.view.InflateException: Binary XML file line #17 in com.panterafood.garcom:layout/abc_screen_simple: Error inflating class android.support.v7.widget.FitWindowsLinearLayout
at Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object java.lang.reflect.Field.get(java.lang.Object)' on a null object reference
at at uk.co.chrisjenx.calligraphy.ReflectionUtils.getValue(ReflectionUtils.java:25)
at at uk.co.chrisjenx.calligraphy.CalligraphyLayoutInflater.createCustomViewInternal(CalligraphyLayoutInflater.java:203)
at at uk.co.chrisjenx.calligraphy.CalligraphyLayoutInflater.access$000(CalligraphyLayoutInflater.java:20)
at at uk.co.chrisjenx.calligraphy.CalligraphyLayoutInflater$PrivateWrapperFactory2.onCreateView(CalligraphyLayoutInflater.java:302)
at at android.view.LayoutInflater$FactoryMerger.onCreateView(LayoutInflater.java:239)
at at android.view.LayoutInflater.tryCreateView(LayoutInflater.java:1069)
at at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:997)
at at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:961)
at at android.view.LayoutInflater.inflate(LayoutInflater.java:659)
at at uk.co.chrisjenx.calligraphy.CalligraphyLayoutInflater.inflate(CalligraphyLayoutInflater.java:60)
at at android.view.LayoutInflater.inflate(LayoutInflater.java:534)
at at android.view.LayoutInflater.inflate(LayoutInflater.java:481)
at at android.support.v7.app.AppCompatDelegateImpl.createSubDecor(AppCompatDelegateImpl.java:631)
at at android.support.v7.app.AppCompatDelegateImpl.ensureSubDecor(AppCompatDelegateImpl.java:518)
at at android.support.v7.app.AppCompatDelegateImpl.setContentView(AppCompatDelegateImpl.java:466)
at at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:140)
at at crc64f084fe566d431cdf.Login.n_onCreate(Native Method)
at at crc64f084fe566d431cdf.Login.onCreate(Login.java:30)
at at android.app.Activity.performCreate(Activity.java:7802)
at at android.app.Activity.performCreate(Activity.java:7791)
at at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1299)
at at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3245)
at at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3409)
at at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:83)
at at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2016)
at at android.os.Handler.dispatchMessage(Handler.java:107)
at at android.os.Looper.loop(Looper.java:214)
at at android.app.ActivityThread.main(ActivityThread.java:7356)
at at java.lang.reflect.Method.invoke(Native Method)
at at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
at at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)
About Visual Studio:
=== Visual Studio Community 2019 for Mac ===
Version 8.6.8 (build 2)
Installation UUID: 62dd4eec-8f9a-439f-b01d-4ea3930db8fc
GTK+ 2.24.23 (Raleigh theme)
Xamarin.Mac 6.18.0.23 (d16-6 / 088c73638)
Package version: 610000106
=== Mono Framework MDK ===
Runtime:
Mono 6.10.0.106 (2019-12/77769615db1) (64-bit)
Package version: 610000106
=== Roslyn (Language Service) ===
3.6.0-3.20210.9+4eafdcb1bcbd8d3573f2ba6065e56d9b9ce4f8a3
=== NuGet ===
Versão: 5.6.0.6591
=== SDK do .NET Core ===
SDK: /usr/local/share/dotnet/sdk/3.1.302/Sdks
Versões do SDK:
3.1.302
3.1.300
3.1.101
3.1.100
SDKs do MSBuild: /Library/Frameworks/Mono.framework/Versions/6.10.0/lib/mono/msbuild/Current/bin/Sdks
=== Runtime do .NET Core ===
Tempo de execução: /usr/local/share/dotnet/dotnet
Versões de Tempo de Execução:
3.1.6
3.1.4
3.1.1
3.1.0
2.1.20
2.1.18
2.1.15
2.1.14
=== Xamarin.Profiler ===
Versão: 1.6.13.11
Local: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler
=== Updater ===
Versão: 11
=== Apple Developer Tools ===
Xcode 11.6 (16141)
Build 11E708
=== Xamarin.Mac ===
Xamarin.Mac not installed. Can't find /Library/Frameworks/Xamarin.Mac.framework/Versions/Current/Version.
=== Xamarin.iOS ===
Version: 13.18.3.2 (Visual Studio Community)
Hash: ce0cc74a3
Branch: d16-6-xcode11.6
Build date: 2020-07-16 18:15:27-0400
=== Xamarin.Android ===
Versão: 10.3.1.4 (Visual Studio Community)
Fazer commit: xamarin-android/d16-6/3a10de9
Android SDK: /Users/osdinformatica/Library/Developer/Xamarin/android-sdk-macosx
Versões Android com suporte:
4.4 (nível da API 19)
8.0 (nível da API 26)
8.1 (nível da API 27)
Versão das Ferramentas de SDK: 26.1.1
Versão das Ferramentas da Plataforma SDK: 29.0.4
Versão das Ferramentas de Build do SDK: 28.0.3
Informações do Build:
Mono: 165f4b0
Java.Interop: xamarin/java.interop/d16-6#2cab35c
ProGuard: xamarin/proguard/master#905836d
SQLite: xamarin/sqlite/3.31.1#49232bc
Xamarin.Android Tools: xamarin/xamarin-android-tools/d16-6#bfb66f3
=== Microsoft OpenJDK for Mobile ===
Java SDK: /Users/osdinformatica/Library/Developer/Xamarin/jdk/microsoft_dist_openjdk_1.8.0.25
1.8.0-25
O código EPL do Android Designer está disponível aqui:
https://github.com/xamarin/AndroidDesigner.EPL
=== Android SDK Manager ===
Version: 16.6.0.50
Hash: 5901879
Branch: remotes/origin/d16-6
Build date: 2020-06-10 22:42:50 UTC
=== Android Device Manager ===
Version: 16.6.0.96
Hash: 6e8b80b
Branch: remotes/origin/d16-6
Build date: 2020-06-10 22:43:28 UTC
=== Xamarin Designer ===
Version: 16.6.0.329
Hash: d4f8bcd13
Branch: remotes/origin/d16-6
Build date: 2020-04-24 02:16:02 UTC
=== Build Information ===
Release ID: 806080002
Git revision: e999e2934e8c771fdf6494b80361dacef9427565
Build date: 2020-07-24 15:17:52-04
Build branch: release-8.6
Xamarin extensions: e999e2934e8c771fdf6494b80361dacef9427565
=== Operating System ===
Mac OS X 10.15.4
Darwin 19.4.0 Darwin Kernel Version 19.4.0
Wed Mar 4 22:28:40 PST 2020
root:xnu-6153.101.6~15/RELEASE_X86_64 x86_64
I found this question whith a similar error: "https://stackoverflow.com/questions/57495384/crash-on-calligraphy-library-by-chris-jenx-for-android-q".
The anwser for that was migrate to Calligraphy 3, can i do this in Xamarin.Android? How?
Could be something else? What?
I suggest you to take a look at this guide
I faced the same problem on a legacy Xamarin.Android project and I solved it removing Calligraphy. This is not a big problem since you must support and target API 28 (29 from November 2th). The problem was solved in Calligraphy 3+ but that version of library is currently not up to date in available Xamarin Nuget packages (they are still base on calligraphy 2).
I have an issue with upgrading react-native version from 0.59.10 to 0.61.5. We are using our own native modules and it seems like to be problem with them. This problem I have only on iOS.
ERROR:
Invariant Violation: Native module cannot be null.
React Native version:
System:
OS: macOS 10.15.2
CPU: (8) x64 Intel(R) Core(TM) i5-8259U CPU # 2.30GHz
Memory: 70.44 MB / 8.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 11.5.0 - /usr/local/bin/node
Yarn: 1.12.3 - /usr/local/bin/yarn
npm: 6.12.0 - /usr/local/bin/npm
SDKs:
iOS SDK:
Platforms: iOS 13.2, DriverKit 19.0, macOS 10.15, tvOS 13.2, watchOS 6.1
Android SDK:
API Levels: 27, 28, 29
Build Tools: 28.0.3, 29.0.0, 29.0.1, 29.0.2
System Images: android-26 | Google APIs Intel x86 Atom, android-28 | Google APIs Intel x86 Atom
Android NDK: 20.0.5594570
IDEs:
Android Studio: 3.5 AI-191.8026.42.35.5791312
Xcode: 11.3/11C29 - /usr/bin/xcodebuild
npmPackages:
react: 16.9.0 => 16.9.0
react-native: 0.61.5 => 0.61.5
npmGlobalPackages:
react-native-cli: 2.0.1
react-native-git-upgrade: 0.2.7
react-native: 0.61.5
GITHUB: https://github.com/facebook/react-native/issues/27975
I'm making an app with Flutter and I need to fetch some data from a Firestore database. I followed the steps to include it in the iOS Xcode project, but I get an error after Xcode build. I am not even using Firebase yet in the app.
I found this answer: App getting crash when click on GoogleSignIn button
But it does not correspond to my problem.
This is the AppDelegate.m (no error reported by Xcode):
#include "AppDelegate.h"
#include "GeneratedPluginRegistrant.h"
#import "GoogleMaps/GoogleMaps.h"
#import Firebase;
#implementation AppDelegate
- (BOOL)application:(UIApplication *)application
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
[GMSServices provideAPIKey:#"XXXX"];
[GeneratedPluginRegistrant registerWithRegistry:self];
[FIRApp configure];
// Override point for customization after application launch.
return [super application:application didFinishLaunchingWithOptions:launchOptions];
}
#end
This is the error I get:
Launching lib/main.dart on iPhone 8 in debug mode...
Running Xcode build...
Xcode build done. 7,8s
Configuring the default Firebase app...
6.0.0 - [Firebase/Core][I-COR000004] App with name __FIRAPP_DEFAULT does not exist.
6.0.0 - [Firebase/Analytics][I-ACS023007] Analytics v.60000000 started
6.0.0 - [Firebase/Analytics][I-ACS023008] To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled (see XXXX)
Configured the default Firebase app __FIRAPP_DEFAULT.
6.0.0 - [Firebase/Core][I-COR000027] The library name (flutter-firebase_core) or version number (0.4.0+1) contain invalid characters. Only alphanumeric, dash, underscore and period characters are allowed.
*** First throw call stack:
(
0 CoreFoundation 0x000000010f5d26fb __exceptionPreprocess + 331
1 libobjc.A.dylib 0x000000010eb76ac5 objc_exception_throw + 48
2 CoreFoundation 0x000000010f5d2555 +[NSException raise:format:] + 197
3 Runner 0x00000001076ca6b6 +[FIRApp configureWithName:options:] + 326
4 Runner 0x00000001076ca54f +[FIRApp configureWithOptions:] + 143
5 Runner 0x00000001076ca47f +[FIRApp configure] + 607
6 Runner 0x000000010757e61c -[AppDelegate application:didFinishLaunchingWithOptions:] + 156
7 UIKitCore 0x0000000119a83311 -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 280
8 UIKitCore 0<…>
Error connecting to the service protocol: HttpException: Connection closed before full header was received, uri = http://127.0.0.1:54573/It0MI4dOUXE=/ws
And this is Flutter doctor output:
[✓] Flutter (Channel stable, v1.5.4-hotfix.2, on Mac OS X 10.14.4 18E226, locale fr-FR)
• Flutter version 1.5.4-hotfix.2 at /Users/mickaeldebalme/SDK/Flutter/flutter
• Framework revision 7a4c33425d (3 weeks ago), 2019-04-29 11:05:24 -0700
• Engine revision 52c7a1e849
• Dart version 2.3.0 (build 2.3.0-dev.0.5 a1668566e5)
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
• Android SDK at /Users/mickaeldebalme/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.3
• Java binary at: /Users/mickaeldebalme/Library/Application
Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/182.5314842/Android
Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)
• All Android licenses accepted.
[✓] iOS toolchain - develop for iOS devices (Xcode 10.2.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 10.2.1, Build version 10E1001
• ios-deploy 1.9.4
• CocoaPods version 1.6.1
[✓] Android Studio (version 3.3)
• Android Studio at /Users/mickaeldebalme/Library/Application
Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/182.5314842/Android Studio.app/Contents
• Flutter plugin version 34.0.1
• Dart plugin version 182.5215
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)
[✓] Connected device (1 available)
• iPhone 8 • B6399A10-1F2D-44C3-8B0D-6AD086AD0F55 • ios •
com.apple.CoreSimulator.SimRuntime.iOS-12-2 (simulator)
• No issues found!
EDIT
After creating a clean project, the error was still there.
So I did the following:
Upgrading all my plugins to the latest version
Migrating to Android X
Moving the [FIRApp configure]; above the rest of the Objective-C instructions in the AppDelegate.m (yes !)
I finally found a solution.
After creating a clean project, the error was still there. So I did the following:
Upgrading all my plugins to the latest version
Migrating to Android X
Moving the [FIRApp configure]; above the rest of the Objective-C instructions in the AppDelegate.m (yes !)
Please help.
After updating to xCode 9 and Xamarin I started getting this error when launching my app on the simulator (iPhone4s and iPhone 5)
Sep 27 08:38:43 Administrators-MacBook-Pro.local CoreSimulatorBridge[1307]: Beginning launch sequence for bundle 'AppName'
retryTimeout: 120.000000 (default write com.apple.CoreSimulatorBridge LaunchRetryTimeout )
bootTimeout: 300.000000 (default write com.apple.CoreSimulatorBridge BootRetryTimeout )
bootLeeway: 120.000000 (default write com.apple.CoreSimulatorBridge BootLeeway )
Note: Use 'xcrun simctl spawn booted defaults write ' to modify defaults in the booted Simulator device.
Simulator booted at: 2017-09-27 06:13:45 +0000
Current time: 2017-09-27 06:38:43 +0000
Within boot leeway: NO
Sep 27 08:38:43 Administrators-MacBook-Pro.local CoreSimulatorBridge[1307]: Launch attempt #0 for bundle 'AppName', have been trying to launch for 0 seconds. Modern launch services = NO
Sep 27 08:38:43 Administrators-MacBook-Pro com.apple.CoreSimulator.SimDevice.F31CDDCE-9C99-49C9-9BDE-2F2C7330CFC1[1288] (UIKitApplication:AppName[0x8c48][1673]): Program specified by service does not contain one of the requested architectures: Äúé
Sep 27 08:38:43 Administrators-MacBook-Pro.local SpringBoard[1301]: Unable to get pid for 'UIKitApplication:AppName[0x8c48]': No such process (err 3)
Sep 27 08:38:43 Administrators-MacBook-Pro.local SpringBoard[1301]: Application 'UIKitApplication:AppName[0x8c48]' exited voluntarily.
Sep 27 08:38:43 Administrators-MacBook-Pro.local CoreSimulatorBridge[1307]: Failed to lookup the process ID of AppName after successful launch. Perhaps it crashed after launch.
Sep 27 08:38:43 Administrators-MacBook-Pro.local CoreSimulatorBridge[1307]: Non-FBS error launching 'AppName', will NOT retry. Error was: Error Domain=NSPOSIXErrorDomain Code=3 "Failed to lookup the process ID of AppName after successful launch. Perhaps it crashed after launch." UserInfo=0x79625e00 {NSLocalizedDescription=Failed to lookup the process ID of AppName after successful launch. Perhaps it crashed after launch.}
Sep 27 08:38:43 Administrators-MacBook-Pro com.apple.CoreSimulator.SimDevice.F31CDDCE-9C99-49C9-9BDE-2F2C7330CFC1[1288] (UIKitApplication:AppName[0x315b][1674]): Program specified by service does not contain one of the requested architectures: Äúé
Sep 27 08:38:43 Administrators-MacBook-Pro.local SpringBoard[1301]: Unable to get pid for 'UIKitApplication:AppName[0x315b]': No such process (err 3)
Sep 27 08:38:43 Administrators-MacBook-Pro.local SpringBoard[1301]: Application 'UIKitApplication:AppName[0x315b]' exited voluntarily.
Sep 27 08:38:43 Administrators-MacBook-Pro.local SpringBoard[1301]: Unable to deliver -[UIRemoteApplication showTopMostMiniAlertWithSynchronizationPort:] message to port 0: (ipc/send) invalid destination port
Sep 27 08:40:24 Administrators-MacBook-Pro.local DTMobileIS[1403]: Could not create service named com.apple.instruments.server.services.processcontrol.posixspawn
Any help in the right direction would be much appreciated.
My Supported Architectures are : i386 + x86_64
More info:
=== Visual Studio Community 2017 for Mac ===
Version 7.1.5 (build 2)
Installation UUID: 7ab56de2-d309-4bf5-99dc-8e8927831737
Runtime:
Mono 5.2.0.224 (d15-3/14f2c81) (64-bit)
GTK+ 2.24.23 (Raleigh theme)
Package version: 502000224
=== NuGet ===
Version: 4.3.0.2418
=== .NET Core ===
Runtime: Not installed
SDK: Not installed
MSBuild SDKs: /Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/msbuild/15.0/bin/Sdks
=== Xamarin.Profiler ===
Version: 1.5.5
Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler
=== Xamarin.Android ===
Version: 7.4.5.1 (Visual Studio Community)
Android SDK: /Users/administrator/Library/Developer/Xamarin/android-sdk-macosx
Supported Android versions:
2.3 (API level 10)
4.0.3 (API level 15)
4.4 (API level 19)
5.0 (API level 21)
6.0 (API level 23)
7.0 (API level 24)
7.1 (API level 25)
SDK Tools Version: 25.2.5
SDK Platform Tools Version: 25.0.5
SDK Build Tools Version: 25.0.3
Java SDK: /usr
java version "1.8.0_101"
Java(TM) SE Runtime Environment (build 1.8.0_101-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)
Android Designer EPL code available here:
https://github.com/xamarin/AndroidDesigner.EPL
=== Xamarin Inspector ===
Version: 1.3.1
Hash: cbc48dd
Branch: 1.3-release
Build date: Thu, 21 Sep 2017 19:52:53 GMT
Client compatibility: 1
=== Apple Developer Tools ===
Xcode 9.0 (13247)
Build 9A235
=== Xamarin.Mac ===
Xamarin.Mac not installed. Can't find /Library/Frameworks/Xamarin.Mac.framework/Versions/Current/Version.
=== Xamarin.iOS ===
Version: 11.0.0.0 (Visual Studio Community)
Hash: 152b654a
Branch: xcode9
Build date: 2017-09-15 02:25:56-0400
=== Build Information ===
Release ID: 701050002
Git revision: 7afedcaef8e7542e70e3cf8f9bdb26938b8c0876
Build date: 2017-09-15 08:39:58-04
Xamarin addins: 3262aadf811a18c12eac6742532d052b0139a808
Build lane: monodevelop-lion-d15-3-xcode9
=== Operating System ===
Mac OS X 10.12.6
Darwin 16.7.0 Darwin Kernel Version 16.7.0
Thu Jun 15 17:36:27 PDT 2017
root:xnu-3789.70.16~2/RELEASE_X86_64 x86_64
Actually how this works is that the Xcode version in your mac system and the xamarin version on your windows device should match.
To see which xcode version matches your xamarin version check here:
https://releases.xamarin.com/stable-release-15-3-5-with-xcode-9-support/