alexsorokoletov / objc-automatic

[Not supported anymore] Automation tool to bind CocoaPods to NuGet packages for Xamarin.iOS
45 stars 15 forks source link

Failed for FirebaseDatabase sample #5

Closed EltonGarcia closed 7 years ago

EltonGarcia commented 7 years ago

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:

error FS0193: Specified method is not supported.

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.FSharpChoice2[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.FSharpFunc2[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.IEnumerable1[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_voidthis__ (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

================================================================= 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 $@

alexsorokoletov commented 7 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.