Decoder is draining and auto shutdown - xamarin.android

I am working on Xamarin.Android project with simple layout and streaming RTSP video from IP Camera.
However, I checkout and build the official sample:
RTSP Mosaic
https://code.videolan.org/mfkl/libvlcsharp-samples/tree/master/VideoMosaic/VideoMosaic.Android
It seems unstable and VLC streaming is close after 1 minutes, but it is stable if I download the VLC player and stream from URL.
Below is the debug log just before the streaming shutdown from VS2017:
06-26 17:31:26.895 I/MediaCodec(30979): setCodecState state : 0
06-26 17:31:28.317 E/VLC (30979): [00000074eba29690/791e] libvlc input: ES_OUT_SET_(GROUP_)PCR is called too late (pts_delay increased to 1000 ms)
06-26 17:31:28.319 I/ACodec (30979): [OMX.qcom.video.decoder.avc] signalFlush
06-26 17:31:28.320 I/ACodec (30979): [OMX.qcom.video.decoder.avc] ExecutingState flushing now (codec owns 1/4 input, 10/15 output).
06-26 17:31:28.321 E/NdkMediaCodec(30979): sf error code: -38
06-26 17:31:28.329 I/ACodec (30979): [OMX.qcom.video.decoder.avc] Now Flushing
06-26 17:31:28.337 I/ACodec (30979): [OMX.qcom.video.decoder.avc] FlushingState onOMXEvent(0,1,1)
06-26 17:31:28.337 I/ACodec (30979): [OMX.qcom.video.decoder.avc] FlushingState onOMXEvent(0,1,0)
06-26 17:31:28.337 I/ACodec (30979): [OMX.qcom.video.decoder.avc] Now Executing
06-26 17:31:28.469 I/MediaCodec(30979): setCodecState state : 1
06-26 17:31:49.475 I/MediaCodec(30979): setCodecState state : 0
06-26 17:31:57.456 E/VLC (30979): [00000074e86c9210/7933] libvlc decoder: Decoder is draining
06-26 17:31:57.478 I/MediaCodec(30979): setCodecState state : 1
06-26 17:31:57.558 E/NdkMediaCodec(30979): sf error code: -38
06-26 17:31:57.558 I/ACodec (30979): [OMX.qcom.video.decoder.avc] signalFlush
06-26 17:31:57.559 I/ACodec (30979): [OMX.qcom.video.decoder.avc] ExecutingState flushing now (codec owns 0/4 input, 8/15 output).
06-26 17:31:57.560 I/ACodec (30979): [OMX.qcom.video.decoder.avc] Now Flushing
06-26 17:31:57.564 I/ACodec (30979): [OMX.qcom.video.decoder.avc] FlushingState onOMXEvent(0,1,1)
06-26 17:31:57.564 I/ACodec (30979): [OMX.qcom.video.decoder.avc] FlushingState onOMXEvent(0,1,0)
06-26 17:31:57.564 I/ACodec (30979): [OMX.qcom.video.decoder.avc] Now Executing
06-26 17:31:57.572 I/ACodec (30979): [OMX.qcom.video.decoder.avc] Now Executing->Idle
06-26 17:31:57.592 I/ACodec (30979): [OMX.qcom.video.decoder.avc] Now Idle->Loaded
06-26 17:31:57.594 I/ACodec (30979): [OMX.qcom.video.decoder.avc] Now Loaded
06-26 17:31:57.594 I/ACodec (30979): [OMX.qcom.video.decoder.avc] Now kWhatShutdownCompleted event : 8563
06-26 17:31:57.594 D/SurfaceUtils(30979): disconnecting from surface 0x75075b0010, reason disconnectFromSurface
06-26 17:31:57.606 I/ACodec (30979): [OMX.qcom.video.decoder.avc] Now uninitialized
06-26 17:31:57.606 I/ACodec (30979): [] Now kWhatShutdownCompleted event : 8563
06-26 17:31:57.610 I/MediaCodec(30979): Codec shutdown complete

Related

Visual Studio Mac Deployment Failed to Android Emulator

Trying to deploy a Xamarin Android App to an emulator running on a Mac fails with error "Deployment Failed" along with Mono.AndroidTools.AdbException: secure_mkdirs failed: Permission denied
Update: The emulator was started by Android Studio. When I try to start the emulator from Visual Studio Mac, I get error
PANIC: Broken AVD system path. Check your ANDROID_SDK_ROOT value [/Users/myname/Library/Developer/Xamarin/android-sdk-macosx]!
Below is an excerpt from the Deploying To Device pad round about where the errors start showing
...
Synchronizing assemblies
Synchronizing assemblies...
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.Debugging.targets(618,2): error ADB1000: Deployment failed
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.Debugging.targets(618,2): error ADB1000: Xamarin.AndroidTools.AndroidDeploymentException: FailedToSynchronizeFastDevAssemblies ---> Mono.AndroidTools.AdbException: secure_mkdirs failed: Permission denied
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.Debugging.targets(618,2): error ADB1000: at Mono.AndroidTools.Util.AggregateAsyncResult.CheckError (System.Threading.CancellationToken token) [0x0002a] in /Users/builder/azdo/_work/287/s/xamarin-android/external/monodroid/tools/msbuild/external/androidtools/Mono.AndroidTools/Util/AggregateAsyncResult.cs:72
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.Debugging.targets(618,2): error ADB1000: at Mono.AndroidTools.Adb.AdbSyncClient.EndPushSyncItems (System.IAsyncResult result) [0x00006] in /Users/builder/azdo/_work/287/s/xamarin-android/external/monodroid/tools/msbuild/external/androidtools/Mono.AndroidTools/Adb/AdbSyncClient.cs:1071
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.Debugging.targets(618,2): error ADB1000: at Mono.AndroidTools.Internal.AdbClientTaskExtensions.InnerInvoke (System.Threading.Tasks.TaskCompletionSource`1[TResult] tcs, System.Func`2[T,TResult] endMethod, System.IAsyncResult l) [0x00000] in /Users/builder/azdo/_work/287/s/xamarin-android/external/monodroid/tools/msbuild/external/androidtools/Mono.AndroidTools/Internal/AdbClientTaskExtensions.cs:256
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.Debugging.targets(618,2): error ADB1000: --- End of stack trace from previous location where exception was thrown ---
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.Debugging.targets(618,2): error ADB1000:
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.Debugging.targets(618,2): error ADB1000: at Xamarin.AndroidTools.AndroidDeploySession.InstallAssemblies (System.String destinationPath, System.Threading.CancellationToken token) [0x00339] in /Users/builder/azdo/_work/287/s/xamarin-android/external/monodroid/tools/msbuild/external/androidtools/Xamarin.AndroidTools/Sessions/AndroidDeploySession.cs:614
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.Debugging.targets(618,2): error ADB1000: --- End of inner exception stack trace ---
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.Debugging.targets(618,2): error ADB1000: at Xamarin.AndroidTools.AndroidDeploySession.InstallAssemblies (System.String destinationPath, System.Threading.CancellationToken token) [0x003b5] in /Users/builder/azdo/_work/287/s/xamarin-android/external/monodroid/tools/msbuild/external/androidtools/Xamarin.AndroidTools/Sessions/AndroidDeploySession.cs:622
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.Debugging.targets(618,2): error ADB1000: at Xamarin.AndroidTools.AndroidDeploySession.FastDevAsync (System.Boolean useExternal) [0x000da] in /Users/builder/azdo/_work/287/s/xamarin-android/external/monodroid/tools/msbuild/external/androidtools/Xamarin.AndroidTools/Sessions/AndroidDeploySession.cs:514
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.Debugging.targets(618,2): error ADB1000: at Xamarin.AndroidTools.AndroidDeploySession.RunAsync (System.Threading.CancellationToken token) [0x004b0] in /Users/builder/azdo/_work/287/s/xamarin-android/external/monodroid/tools/msbuild/external/androidtools/Xamarin.AndroidTools/Sessions/AndroidDeploySession.cs:229
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.Debugging.targets(618,2): error ADB1000: at Xamarin.AndroidTools.AndroidDeploySession.RunLoggedAsync (System.Threading.CancellationToken token) [0x0002f] in /Users/builder/azdo/_work/287/s/xamarin-android/external/monodroid/tools/msbuild/external/androidtools/Xamarin.AndroidTools/Sessions/AndroidDeploySession.cs:123
Done building target "_Upload" in project "xamarinwrapper.csproj" -- FAILED.
Done building project "xamarinwrapper.csproj" -- FAILED.
Build FAILED.
...
Well, I reinstalled Visual Studio for Mac, and created a new emulator using the Visual Studio Device Manager, started the emulator from Visual Studio Device Manager and it works now.

Flutter background task in iOS crashes app

In release mode, when I run my app, if I have the app in the background for around 30 seconds and bring the app to the foreground I get the error-log:
2020-07-24 23:12:14.473633+0200 myTest[11229:3284265] Could not signal service com.apple.WebKit.WebContent: 113: Could not find specified service
2020-07-24 23:12:14.608936+0200 myTest[11229:3284265] Could not signal service com.apple.WebKit.Networking: 113: Could not find specified service
2020-07-24 23:13:06.713676+0200 myTest[11229:3284265] dnssd_clientstub read_all(15) DEFUNCT
2020-07-24 23:13:06.713798+0200 myTest[11229:3284265] [VERBOSE-2:FlutterObservatoryPublisher.mm(131)] Could not register as server for FlutterObservatoryPublisher. Check your network settings and relaunch the application.
2020-07-24 23:13:06.733470+0200 myTest[11229:3285031] [] nw_read_request_report [C1] Receive failed with error "Software caused connection abort"
2020-07-24 23:13:06.733962+0200 myTest[11229:3285031] [] nw_read_request_report [C5] Receive failed with error "Software caused connection abort"
2020-07-24 23:13:06.734091+0200 myTest[11229:3285031] [] nw_read_request_report [C4] Receive failed with error "Software caused connection abort"
2020-07-24 23:13:06.734177+0200 myTest[11229:3285031] [] nw_read_request_report [C1] Receive failed with error "Software caused connection abort"
2020-07-24 23:13:06.738494+0200 myTest[11229:3284531] dnssd_clientstub write_all(40) DEFUNCT
2020-07-24 23:13:06.738517+0200 myTest[11229:3284531] dnssd_clientstub deliver_request ERROR: write_all(40, 65 bytes) failed
2020-07-24 23:13:06.738540+0200 myTest[11229:3284531] dnssd_clientstub write_all(40) DEFUNCT
2020-07-24 23:13:06.742580+0200 myTest[11229:3285031] [] nw_read_request_report [C5] Receive failed with error "Software caused connection abort"
2020-07-24 23:13:06.751339+0200 myTest[11229:3285031] [] nw_read_request_report [C4] Receive failed with error "Software caused connection abort"
This will result in a grey-screen, freezing the app. Any idea what is causing this error or how to get around it?
I'm using firebase, maybe this is causing it?

Storyboard won't open in Visual Studio (Xamarin). The designer could not be initialized

We use Visual Studio (Xamarin) to develop our Apps for Apple. Since I installed the latest update, the Storyboard wont open in Visual Studio.
I tried downgrading to the last version but that doesn't seem to work. Rebuilded, Restartet and Unloaded the project already.
Error Message:
MonoTouch.Design.Client.CouldNotInitializeRendererException: Exception of type 'MonoTouch.Design.Client.CouldNotInitializeRendererException' was thrown.
at MonoTouch.Design.Client.ServerProcessConnection.SendRequest(CommandRequest req, Boolean throwIfNotRunning) in E:\A\_work\1898\s\Xamarin.Designer.iOS\MonoTouch.Design.Client\Connection\ServerProcessConnection.cs:line 232
at MonoTouch.Design.Client.ServerProcessConnection.SendRequest[TResponse](CommandRequest req, Boolean throwIfNotRunning) in E:\A\_work\1898\s\Xamarin.Designer.iOS\MonoTouch.Design.Client\Connection\ServerProcessConnection.cs:line 243
at MonoTouch.Design.Client.ServerProcessConnection.CreateSession() in E:\A\_work\1898\s\Xamarin.Designer.iOS\MonoTouch.Design.Client\Connection\ServerProcessConnection.cs:line 111
at MonoTouch.Design.Client.ServerProcessConnection.<CreateSessionAsync>b__28_0() in E:\A\_work\1898\s\Xamarin.Designer.iOS\MonoTouch.Design.Client\Connection\ServerProcessConnection.cs:line 116
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
...
...
...
[2019-10-11 15:43:30.7] INFO: [2019-10-11 15:43:30.6] INFO: Waiting for renderer to start... 300
[2019-10-11 15:43:30.9] INFO: [2019-10-11 15:43:30.9] ERROR: Could not initialize renderer
[2019-10-11 15:43:30.9] INFO: MonoTouch.Design.Client.CouldNotInitializeRendererException: The renderer never started, bailing out... ---> MonoTouch.Design.Client.RetryConnectionException ---> System.Net.Sockets.SocketException: Connection refused
[2019-10-11 15:43:30.9] INFO: at System.Net.Sockets.Socket.Connect (System.Net.EndPoint remoteEP) [0x000b6] in <118907f5eb5f4e538f3e3bdd8361378f>:0
[2019-10-11 15:43:30.9] INFO: at Mono.Unix.UnixClient.Connect (Mono.Unix.UnixEndPoint remoteEndPoint) [0x00006] in <47e71035f6774c5fa65560f4ab0cc60e>:0
[2019-10-11 15:43:30.9] INFO: at (wrapper remoting-invoke-with-check) Mono.Unix.UnixClient.Connect(Mono.Unix.UnixEndPoint)
[2019-10-11 15:43:30.9] INFO: at MonoTouch.Design.Client.Mac.MacServerProcessConnection.SendRequestImpl (MonoTouch.Design.CommandRequest request) [0x0000d] in <75e4a400d63a46619c2379952ad9ffcc>:0
[2019-10-11 15:43:30.9] INFO: --- End of inner exception stack trace ---
[2019-10-11 15:43:30.9] INFO: at MonoTouch.Design.Client.Mac.MacServerProcessConnection.SendRequestImpl (MonoTouch.Design.CommandRequest request) [0x0001b] in <75e4a400d63a46619c2379952ad9ffcc>:0
[2019-10-11 15:43:30.9] INFO: at MonoTouch.Design.Client.ServerProcessConnection.SendRequestCore (MonoTouch.Design.CommandRequest request, System.Boolean throwIfNotRunning) [0x00050] in <3fb2608a4c644b7faeb25f7a26ae637f>:0
[2019-10-11 15:43:30.9] INFO: --- End of inner exception stack trace ---
[2019-10-11 15:43:30.9] INFO: at MonoTouch.Design.Client.ServerProcessConnection.SendRequestCore (MonoTouch.Design.CommandRequest request, System.Boolean throwIfNotRunning) [0x000c2] in <3fb2608a4c644b7faeb25f7a26ae637f>:0
[2019-10-11 15:43:30.9] INFO: at MonoTouch.Design.Client.ServerProcessConnection.SendRequest (MonoTouch.Design.CommandRequest req, System.Boolean throwIfNotRunning) [0x00000] in <3fb2608a4c644b7faeb25f7a26ae637f>:0
[2019-10-11 15:43:30.9] INFO: at CSProxyHost.MainClass.HandleMessage (MonoTouch.Design.CommandRequest message) [0x0015b] in <22267ef404cb4303b2debccd373e2a94>:0
[2019-10-11 15:43:30.9] INFO: Reloading: Server rendering completed in 61335ms
[2019-10-11 15:43:30.9] ERROR: EnsureSession (counter 1): System.AggregateException: One or more errors occurred. ---> MonoTouch.Design.Client.CouldNotInitializeRendererException: Exception of type 'MonoTouch.Design.Client.CouldNotInitializeRendererException' was thrown.
at MonoTouch.Design.Client.ServerProcessConnection.SendRequest(CommandRequest req, Boolean throwIfNotRunning) in E:\A\_work\1898\s\Xamarin.Designer.iOS\MonoTouch.Design.Client\Connection\ServerProcessConnection.cs:line 232
at MonoTouch.Design.Client.ServerProcessConnection.SendRequest[TResponse](CommandRequest req, Boolean throwIfNotRunning) in E:\A\_work\1898\s\Xamarin.Designer.iOS\MonoTouch.Design.Client\Connection\ServerProcessConnection.cs:line 243
at MonoTouch.Design.Client.ServerProcessConnection.CreateSession() in E:\A\_work\1898\s\Xamarin.Designer.iOS\MonoTouch.Design.Client\Connection\ServerProcessConnection.cs:line 111
at MonoTouch.Design.Client.ServerProcessConnection.<CreateSessionAsync>b__28_0() in E:\A\_work\1898\s\Xamarin.Designer.iOS\MonoTouch.Design.Client\Connection\ServerProcessConnection.cs:line 116
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of inner exception stack trace ---
---> (Inner Exception #0) MonoTouch.Design.Client.CouldNotInitializeRendererException: Exception of type 'MonoTouch.Design.Client.CouldNotInitializeRendererException' was thrown.
at MonoTouch.Design.Client.ServerProcessConnection.SendRequest(CommandRequest req, Boolean throwIfNotRunning) in E:\A\_work\1898\s\Xamarin.Designer.iOS\MonoTouch.Design.Client\Connection\ServerProcessConnection.cs:line 232
at MonoTouch.Design.Client.ServerProcessConnection.SendRequest[TResponse](CommandRequest req, Boolean throwIfNotRunning) in E:\A\_work\1898\s\Xamarin.Designer.iOS\MonoTouch.Design.Client\Connection\ServerProcessConnection.cs:line 243
at MonoTouch.Design.Client.ServerProcessConnection.CreateSession() in E:\A\_work\1898\s\Xamarin.Designer.iOS\MonoTouch.Design.Client\Connection\ServerProcessConnection.cs:line 111
at MonoTouch.Design.Client.ServerProcessConnection.<CreateSessionAsync>b__28_0() in E:\A\_work\1898\s\Xamarin.Designer.iOS\MonoTouch.Design.Client\Connection\ServerProcessConnection.cs:line 116
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()<---
Report the bug as the Storyboard should open with Visual Studio. In the mean time, you can right click on the file inside you Visual Studio For Mac and open it with "Xcode Interface Builder".
I encountered a similar issue when I tried to open the Main.Storyboard in Visual Studio 2019 version 16.0.3. I researched this as it has to work since I already invested in a second hand Mac Book Pro.
In my searches to find a solution, I saw a posting that said you need at least Visual Studio 2019 version 16.3 and above. I went to Help About in Visual Studio 2019 and there was an update to Visual Studio 19 version: 16.5.4 that I now have installed.
My Mac was at Catalina 10.15.3, so I also updated my Mac Book Pro to Catalina 10.15.4 (Apple icon and select About This Mac to update Catalina). XCode that I had installed on the Mac said it only support developing apps on macOS Catalina 10.15.4, thus the upgrade.
The Visual Studio 2019 version update was over 8GB, but the mac update was only slightly over 3GB. So like you said, updating everything to the latest/greatest worked!
With these updates, everyone is happy.

Visual Studio Xamarin Android System.Net.WebException: Error: ConnectFailure (Network is unreachable)

my Android app created in Xamarin has problem with internet connection, below is error code.
Time Device Name Type PID Tag Message
10-09 05:04:52.256 Genymotion Samsung Galaxy S7 - 6.0.0 - API 23 - 1440x2560 Error 1453 AndroidRuntime android.runtime.JavaProxyThrowable: System.Net.WebException: Error: ConnectFailure (Network is unreachable) ---> System.Net.Sockets.SocketException: Network is unreachable
at System.Net.Sockets.Socket.Connect (System.Net.EndPoint remoteEP) [0x000b6] in <6c708cf596db438ebfc6b7e012659eee>:0
at System.Net.WebConnection.Connect (System.Net.HttpWebRequest request) [0x0016d] in <6c708cf596db438ebfc6b7e012659eee>:0
--- End of inner exception stack trace ---
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke (System.String method_name, System.Object[] parameters) [0x000a7] in <3f9824dbe67544e1805773e0a3dbdf6b>:0
at GWAWE.localhost.Service1.Get_Data () [0x00001] in <1baad81b40d64c6886bf076df034661f>:0
at (wrapper remoting-invoke-with-check) GWAWE.localhost.Service1:Get_Data ()
at gwawe.MainActivity.BuildLayout () [0x00031] in <1baad81b40d64c6886bf076df034661f>:0
at gwawe.MainActivity.OnCreate (Android.OS.Bundle savedInstanceState) [0x0004e] in <1baad81b40d64c6886bf076df034661f>:0
at Android.App.Activity.n_OnCreate_Landroid_os_Bundle_ (System.IntPtr jnienv, System.IntPtr native__this, System.IntPtr native_savedInstanceState) [0x0000f] in <9663139ab15947a89e15a6bcd9621f68>:0
at (wrapper dynamic-method) System.Object:e6ea694d-cf84-4098-a161-481a5ad1d4ae (intptr,intptr,intptr)
at md5a9dcb246785c0066d52ff25b77e1a72d.MainActivity.n_onCreate(Native Method)
at md5a9dcb246785c0066d52ff25b77e1a72d.MainActivity.onCreate(MainActivity.java:29)
at android.app.Activity.performCreate(Activity.java:6237)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)
at android.app.ActivityThread.-wrap11(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
Force finishing activity GWAWE.gwawe/md5a9dcb246785c0066d52ff25b77e1a72d.MainActivity
I'm using Visual Studio 2017 with Xamarin and Genymotion. Visual Studio, Xamarin and Genymotion are up to date. App is created only for Android 6.0.
In android manifest I added android.permission.RECEIVE_BOOT_COMPLETED.
I'm using "Wi-Fi" on emulator.
Application have to autostart after device boot up and error show only when I reboot emulator. If I run application manually everything works fine.
The application connects to IIS web service.
Does anybody have a clue what is going on here?
Well from what i understand either the internet permission isn't granted in your Android application or you do not have an internet connection, in case you don't have the permission all you have to do is add this line in your manifest.
<uses-permission android:name="android.permission.INTERNET" />

Getting runtime exception while generating build on El-capitan

I have an mac application by which i am generating ipa and apk builds.This application was running fine without any exceptions when it was on yosemite OS.Now when upgraded to El-Capitan it is giving some unhandled exceptions.I am using xbuild command to generate the build for both android and ios.I am using nstask to execute the commands.Here is the code i am using to generate build.
NSTask *task=[[NSTask alloc]init];
task.launchPath=#"/library/Frameworks/Mono.Framework/Commands/xbuild";
task.arguments= #[#"/p:Configuration=AppStore",#"/p:Platform=iPhone",#"/p:BuildIpa=true",#"/target:Build",[NSString stringWithFormat:#"%#/xyz/xyz.sln",NSHomeDirectory() ]];
[task launch];
[task waitUntilExit];
Here is the exceptions i am getting
Unhandled Exception:
Nested exception detected.
Original Exception: at (wrapper managed-to-native)
object.__icall_wrapper_mono_object_new_fast (intptr) <0x0004f>at Mono.XBuild.CommandLine.MainClass.Main (string[]) <0x00013>
Nested exception:at (wrapper managed-to-native) System.RuntimeType.getFullName (System.RuntimeType,bool,bool) <0x0006b>
at System.RuntimeType.ToString () <0x0002d>
at System.Exception.get_ClassName () <0x0002a>
at System.Exception.ToString () <0x0001f>
[ERROR] FATAL UNHANDLED EXCEPTION: Nested exception detected.
Original Exception: at (wrapper managed-to-native) object.__icall_wrapper_mono_object_new_fast (intptr) <0x0004f>at Mono.XBuild.CommandLine.MainClass.Main (string[]) <0x00013>
Nested exception:at (wrapper managed-to-native) System.RuntimeType.getFullName (System.RuntimeType,bool,bool) <0x0006b>
at System.RuntimeType.ToString () <0x0002d>
at System.Exception.get_ClassName () <0x0002a>
at System.Exception.ToString () <0x0001f>
This is coming only when i upgraded to El-capitan OS.Previously on Yosemite this code was running fine.
I have already disabled the System Integrity Protection but inspite of that the problem is not going.I don't know where this exception is coming from.
Note:When i generate the build through command line tool then it works fine without any exception means exception is coming only when i try to generate the build using code.Thanks

Resources