Closed EltonGarcia closed 6 years ago
Hi @EltonGarcia! If you're going to use Firebase for Xamarin.iOS, please take a look at official Xamarin NuGet packages. https://www.nuget.org/packages?q=xamarin+firebase+ios
These are already prebuilt and tested. The objc-automatic is still a tool but making Firebase bindings manually now is not required since Xamarin did that.
Tried the sample for Firebase using the command: sh bind.sh POD=FirebaseDatabase
Response:
Checking Paket version (downloading latest stable)... Paket.exe 5.81.2 is up to date. Paket version 5.81.2 Skipping resolver for group Auto since it is already up-to-date Skipping resolver for group Main since it is already up-to-date /Users/eltonsantana/Workspace/objc-automatic/paket.lock is already up-to-date Installing into projects:
Error:
Output: [Loading /Users/eltonsantana/Workspace/objc-automatic/build.fsx]
Input: /Users/eltonsantana/Workspace/objc-automatic/./build.fsx \Arguments: C:\fsi.exe
Exception: Yaaf.FSharp.Scripting.FsiEvaluationException: Error while compiling or executing fsharp snippet. ---> System.Exception: Operation failed. The error text has been print the error stream. To return the corresponding FSharpErrorInfo use the EvalInteractionNonThrowing, EvalScriptNonThrowing or EvalExpressionNonThrowing at Microsoft.FSharp.Compiler.Interactive.Shell+FsiEvaluationSession.commitResult[a,b] (Microsoft.FSharp.Core.FSharpChoice
2[T1,T2] res) [0x00030] in <5707a2f5ddab8ea7a7450383f5a20757>:0 at Microsoft.FSharp.Compiler.Interactive.Shell+FsiEvaluationSession.EvalScript (System.String filePath) [0x00014] in <5707a2f5ddab8ea7a7450383f5a20757>:0 at Yaaf.FSharp.Scripting.Helper+evalScript@1303.Invoke (System.String arg00) [0x00001] in <5815a9a6ccf1c534a7450383a6a91558>:0 at Yaaf.FSharp.Scripting.Helper+saveScript@1295-1[a].Invoke (System.String path) [0x00033] in <5815a9a6ccf1c534a7450383a6a91558>:0 at Yaaf.FSharp.Scripting.Helper+save_@1276-2[a].Invoke (Microsoft.FSharp.Core.Unit unitVar0) [0x00001] in <5815a9a6ccf1c534a7450383a6a91558>:0 at Yaaf.FSharp.Scripting.Helper.consoleCapture[a] (System.IO.TextWriter out, System.IO.TextWriter err, Microsoft.FSharp.Core.FSharpFunc
2[T,TResult] f) [0x0001a] in <5815a9a6ccf1c534a7450383a6a91558>:0 at Yaaf.FSharp.Scripting.Helper.redirectOut@1247[a] (System.Boolean preventStdOut, Yaaf.FSharp.Scripting.Helper+OutStreamHelper out, Yaaf.FSharp.Scripting.Helper+OutStreamHelper err, Microsoft.FSharp.Core.FSharpFunc2[T,TResult] f) [0x0006e] in <5815a9a6ccf1c534a7450383a6a91558>:0 at Yaaf.FSharp.Scripting.Helper+save_@1275-1[a].Invoke (System.String text) [0x0002c] in <5815a9a6ccf1c534a7450383a6a91558>:0 --- End of inner exception stack trace --- at Yaaf.FSharp.Scripting.Helper+save_@1275-1[a].Invoke (System.String text) [0x0009e] in <5815a9a6ccf1c534a7450383a6a91558>:0 at Yaaf.FSharp.Scripting.Helper+session@1306.Yaaf-FSharp-Scripting-IFsiSession-EvalScriptWithOutput (System.String ) [0x00001] in <5815a9a6ccf1c534a7450383a6a91558>:0 at Fake.FSIHelper.runScriptUncached (System.Boolean useCache, System.String scriptPath, System.Collections.Generic.IEnumerable
1[T] fsiOptions, System.Boolean printDetails, Fake.FSIHelper+CacheInfo cacheInfo, System.IO.TextWriter out, System.IO.TextWriter err) [0x00187] in <5815a9a6ccf1c534a7450383a6a91558>:0 error FS0193: Specified method is not supported.CACHING ERROR - please open a issue on FAKE and /cc @matthid
Error: System.NotSupportedException: Type 'FSI_0005.Build' was not completed. at System.Reflection.Emit.ModuleBuilder.Save () [0x00048] in:0
at System.Reflection.Emit.AssemblyBuilder.Save (System.String assemblyFileName, System.Reflection.PortableExecutableKinds portableExecutableKind, System.Reflection.ImageFileMachine imageFileMachine) [0x0022b] in :0
at System.Reflection.Emit.AssemblyBuilder.Save (System.String assemblyFileName) [0x00000] in :0
at Fake.FSIHelper.handleCaching[a] (System.Boolean printDetails, Yaaf.FSharp.Scripting.IFsiSession session, a fsiErrorOutput, System.IO.DirectoryInfo cacheDir, Fake.FSIHelper+CacheInfo cacheInfo) [0x00046] in <5815a9a6ccf1c534a7450383a6a91558>:0
Stacktrace:
at <0xffffffff>
mono_os_mutex_destroy: pthread_mutex_destroy failed with "Resource busy" (16)
at System.IO.KqueueMonitor.CleanUp () [0x00059] in <5afdc70d980c4033b3878286f754d091>:0
at System.IO.KqueueMonitor.DoMonitor () [0x00051] in <5afdc70d980c4033b3878286f754d091>:0
at System.IO.KqueueMonitor.b5_0 () [0x00000] in <5afdc70d980c4033b3878286f754d091>:0
at System.Threading.ThreadHelper.ThreadStart_Context (object) [0x00014] in :0
at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) [0x00071] in :0
at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) [0x00000] in :0
at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object) [0x0002b] in :0
at System.Threading.ThreadHelper.ThreadStart () [0x00008] in :0
at (wrapper runtime-invoke) object.runtime_invoke_void this__ (object,intptr,intptr,intptr) [0x0004d] in :0
Native stacktrace:
Stacktrace:
at <0xffffffff>
at (wrapper managed-to-native) System.Environment.Exit (int) <0x00012>
at Microsoft.FSharp.Core.Operators.Exit (int) [0x00001] in <5584aad2904cf4daa7450383d2aa8455>:0
at <StartupCode$FAKE>.$Program.main@ () [0x00524] in <5815a9b2f91bc6c0a7450383b2a91558>:0
at (wrapper runtime-invoke) object.runtime_invoke_void (object,intptr,intptr,intptr) [0x0004c] in :0
at <0xffffffff>
Debug info from gdb:
(lldb) command source -s 0 '/tmp/mono-gdb-commands.pBL8ue' Executing commands in '/tmp/mono-gdb-commands.pBL8ue'. (lldb) process attach --pid 12485 warning: (i386) /Library/Frameworks/Mono.framework/Versions/5.0.1/lib/mono/4.5/mscorlib.dll.dylib empty dSYM file detected, dSYM was created with an executable with no debug info. mono was compiled with optimization - stepping may behave oddly; variables may not be available. Process 12485 stopped
Executable module set to "/Library/Frameworks/Mono.framework/Versions/Current/Commands/mono". Architecture set to: i386-apple-macosx. (lldb) thread list Process 12485 stopped
mono_arch_unwind_frame(domain=0x0013f4ae, jit_tls=0x799c2600, ji=<unavailable>, ctx=0xbffea860, new_ctx=0xbffea7b8, lmf=<unavailable>, save_locations=<unavailable>, frame=0xbffea780) at exceptions-x86.c:846, name = 'tid_403', queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0xc7906d7c) thread #2: tid = 0x2576f2, 0xa1659cba libsystem_kernel.dylib
workq_kernreturn + 10 thread #3: tid = 0x257710, 0xa1659c4a libsystem_kernel.dylib`wait4 + 10, name = 'tid_3603' (lldb) thread backtrace allthread #1, name = 'tid_403', queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0xc7906d7c)
mono_arch_unwind_frame(domain=0x0013f4ae, jit_tls=0x799c2600, ji=<unavailable>, ctx=0xbffea860, new_ctx=0xbffea7b8, lmf=<unavailable>, save_locations=<unavailable>, frame=0xbffea780) at exceptions-x86.c:846 [opt] frame #1: 0x000df6e5 mono
mono_find_jit_info_ext(domain=0xbffea780, jit_tls=0x799c2600, prev_ji=mono_walk_stack_full(func=<unavailable>, start_ctx=<unavailable>, domain=0x7906a680, jit_tls=<unavailable>, lmf=0xc7906d7c, unwind_options=<unavailable>, user_data=<unavailable>) at mini-exceptions.c:1058 [opt] frame #3: 0x000e0315 mono
mono_walk_stack [inlined] mono_walk_stack_with_state(func=mono_walk_stack(func=<unavailable>, options=MONO_UNWIND_LOOKUP_IL_OFFSET, user_data=0x00000000) at mini-exceptions.c:983 [opt] frame #5: 0x000e2a0e mono
mono_handle_native_crash(signal=sigabrt_signal_handler(_dummy=<unavailable>, _info=<unavailable>, context=<unavailable>) at mini-posix.c:208 [opt] frame #7: 0xa1733e5b libsystem_platform.dylib
_sigtramp + 43thread #2 frame #0: 0xa1659cba libsystem_kernel.dylib
__workq_kernreturn + 10 frame #1: 0xa173cb95 libsystem_pthread.dylib
_pthread_wqthread + 841 frame #2: 0xa173c826 libsystem_pthread.dylib`start_wqthread + 34thread #3, name = 'tid_3603' frame #0: 0xa1659c4a libsystem_kernel.dylib, siginfo=, fault_addr=, stack_ovf=0) at exceptions-x86.c:1115 [opt]
frame #4: 0x00024fc2 mono
__wait4 + 10 frame #1: 0xa15d82ef libsystem_c.dylib
waitpid$UNIX2003 + 32 frame #2: 0x000e2b27 monomono_handle_native_crash(signal=<unavailable>, ctx=0x045c7fe0, info=0x045c7fa0) at mini-exceptions.c:2567 [opt] frame #3: 0x0013f919 mono
mono_arch_handle_altstack_exception(sigctx=mono_sigsegv_signal_handler(_dummy=<unavailable>, _info=<unavailable>, context=<unavailable>) at mini-runtime.c:2860 [opt] frame #5: 0xa1733e5b libsystem_platform.dylib
_sigtramp + 43 (lldb) detach Process 12485 detached (lldb) quit================================================================= Got a SIGSEGV while executing native code. This usually indicates a fatal error in the mono runtime or one of the native libraries used by your application.
bind.sh: line 15: 12485 Abort trap: 6 mono --runtime=v4.0 packages/Auto/FAKE/tools/FAKE.exe ./build.fsx $@