objc-automatic icon indicating copy to clipboard operation
objc-automatic copied to clipboard

System.Exception: Error during sharpie bind -output bindings

Open Polyariz opened this issue 6 years ago • 12 comments

When execute the command sh bind.sh POD=XCDYouTubeKit appearing the error: "System.Exception: Error during sharpie bind -output bindings" +++++++++++++++++++++++++++++++++++++++++++++ objc-automatic Pavel$ sh bind.sh POD=XCDYouTubeKit Checking Paket version (downloading latest stable)... Paket.exe 5.149.0 is up to date. Paket version 5.149.0 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/Pavel/Desktop/objc-automatic/paket.lock is already up-to-date Installing into projects:

  • Creating model and downloading packages. Performance:
  • Disk IO: 255 milliseconds
  • Runtime: 11 seconds Building project with version: LocalBuild Shortened DependencyGraph for Target Bind: <== Bind

The running order is:

  • Bind Running build with 1 worker Starting Target: Bind VERBOSE IS false List of pods: ["XCDYouTubeKit"] Sorted dependency graph: ["XCDYouTubeKit"] Deleting /Users/Pavel/Desktop/objc-automatic/pods/XCDYouTubeKit/XCode Creating /Users/Pavel/Desktop/objc-automatic/pods/XCDYouTubeKit/XCode /Users/Pavel/Desktop/objc-automatic/pods/XCDYouTubeKit/XCode already exists. pod install Generating C# bindings for non-Framework pod XCDYouTubeKit /Users/Pavel/Desktop/objc-automatic/pods/XCDYouTubeKit/XCode/build-out does not exist. Creating /Users/Pavel/Desktop/objc-automatic/pods/XCDYouTubeKit/XCode/build-out Deleting /Users/Pavel/Desktop/objc-automatic/bindings/XCDYouTubeKit Creating /Users/Pavel/Desktop/objc-automatic/bindings/XCDYouTubeKit xcodebuild clean build -workspace EmptyProject.xcworkspace -scheme EmptyProject -sdk "iphoneos" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=NO BUILD_DIR=/Users/Pavel/Desktop/objc-automatic/pods/XCDYouTubeKit/XCode/build-out xcodebuild clean build -workspace EmptyProject.xcworkspace -scheme EmptyProject -arch i386 -arch x86_64 -sdk "iphonesimulator" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=NO BUILD_DIR=/Users/Pavel/Desktop/objc-automatic/pods/XCDYouTubeKit/XCode/build-out lipo -create -output pods/XCDYouTubeKit/XCode/build-out/libXCDYouTubeKit.a /Users/Pavel/Desktop/objc-automatic/pods/XCDYouTubeKit/XCode/build-out/libXCDYouTubeKit.device.a /Users/Pavel/Desktop/objc-automatic/pods/XCDYouTubeKit/XCode/build-out/libXCDYouTubeKit.sim.a sharpie bind -output bindings/XCDYouTubeKit -sdk "iphoneos" -scope pods/XCDYouTubeKit/XCode/build-out/Debug-iphoneos/XCDYouTubeKit -n DreamTeam.Xamarin.XCDYouTubeKit -c -I pods/XCDYouTubeKit/XCode/Pods/Headers/Private -Ipods/XCDYouTubeKit/XCode/Pods/Headers/Public -v Running build failed. Error: System.Exception: Error during sharpie bind -output bindings/XCDYouTubeKit -sdk "iphoneos" -scope pods/XCDYouTubeKit/XCode/build-out/Debug-iphoneos/XCDYouTubeKit -n DreamTeam.Xamarin.XCDYouTubeKit -c -I pods/XCDYouTubeKit/XCode/Pods/Headers/Private -Ipods/XCDYouTubeKit/XCode/Pods/Headers/Public -v at Microsoft.FSharp.Core.PrintfModule+PrintFormatToStringThenFail@1379[TResult].Invoke (System.String message) [0x00001] in <5893d081904cf4daa745038381d09358>:0 at Microsoft.FSharp.Core.PrintfImpl+StringPrintfEnv1[TResult].Finalize () [0x00012] in <5893d081904cf4daa745038381d09358>:0 at Microsoft.FSharp.Core.PrintfImpl+Final1@224[TState,TResidue,TResult,A].Invoke (Microsoft.FSharp.Core.FSharpFunc2[T,TResult] env, A a) [0x00038] in <5893d081904cf4daa745038381d09358>:0 at Microsoft.FSharp.Core.OptimizedClosures+Invoke@3253[T2,TResult,T1].Invoke (T2 u) [0x00001] in <5893d081904cf4daa745038381d09358>:0 at FSI_0005.Build.generateCSharpBindingsForCustom (FSI_0005.Build+Pod pod) [0x00299] in :0 at FSI_0005.Build.generateBindingForPod (FSI_0005.Build+Pod pod) [0x00143] in :0 at [email protected] (FSI_0005.Build+Pod pod) [0x00001] in :0 at Microsoft.FSharp.Primitives.Basics.List.iter[T] (Microsoft.FSharp.Core.FSharpFunc2[T,TResult] f, Microsoft.FSharp.Collections.FSharpList1[T] x) [0x00019] in <5893d081904cf4daa745038381d09358>:0 at Microsoft.FSharp.Collections.ListModule.Iterate[T] (Microsoft.FSharp.Core.FSharpFunc2[T,TResult] action, Microsoft.FSharp.Collections.FSharpList1[T] list) [0x00001] in <5893d081904cf4daa745038381d09358>:0 at [email protected] (Microsoft.FSharp.Core.Unit unitVar0) [0x0014d] in :0 at Fake.TargetHelper+targetFromTemplate@209-1[a].Invoke (Microsoft.FSharp.Core.Unit unitVar0) [0x00001] in <5978411fccf1c534a74503831f417859>:0 at Fake.TargetHelper.runSingleTarget (Fake.TargetHelper+TargetTemplate`1[a] target) [0x0004b] in <5978411fccf1c534a74503831f417859>:0

Build Time Report

Target Duration


Bind Failure

Status: Failure

Polyariz avatar Mar 12 '18 19:03 Polyariz

@Polyariz Thank you for the report. Would you be kind as to

  • run the same thing again with additional parameter VERBOSE=true and post the output to a gist
  • repeat command sharpie bind -output bindings/XCDYouTubeKit -sdk "iphoneos" -scope pods/XCDYouTubeKit/XCode/build-out/Debug-iphoneos/XCDYouTubeKit -n DreamTeam.Xamarin.XCDYouTubeKit -c -I pods/XCDYouTubeKit/XCode/Pods/Headers/Private -Ipods/XCDYouTubeKit/XCode/Pods/Headers/Public -v -v -v and see what's the output there and attach it as well?

Thank you.

alexsorokoletov avatar Mar 19 '18 14:03 alexsorokoletov

The command sh bind.sh POD=XCDYouTubeKit VERBOSE=true finished with this error:

Done. Exiting with error code 1. error: no sources specified Running build failed. Error: System.Exception: Error during sharpie bind -output bindings/XCDYouTubeKit -sdk "iphoneos" -scope pods/XCDYouTubeKit/XCode/build-out/Debug-iphoneos/XCDYouTubeKit -n DreamTeam.Xamarin.XCDYouTubeKit -c -I pods/XCDYouTubeKit/XCode/Pods/Headers/Private -Ipods/XCDYouTubeKit/XCode/Pods/Headers/Public -v at Microsoft.FSharp.Core.PrintfModule+PrintFormatToStringThenFail@1379[TResult].Invoke (System.String message) [0x00001] in <5893d081904cf4daa745038381d09358>:0 at Microsoft.FSharp.Core.PrintfImpl+StringPrintfEnv1[TResult].Finalize () [0x00012] in <5893d081904cf4daa745038381d09358>:0 at Microsoft.FSharp.Core.PrintfImpl+Final1@224[TState,TResidue,TResult,A].Invoke (Microsoft.FSharp.Core.FSharpFunc2[T,TResult] env, A a) [0x00038] in <5893d081904cf4daa745038381d09358>:0 at Microsoft.FSharp.Core.OptimizedClosures+Invoke@3253[T2,TResult,T1].Invoke (T2 u) [0x00001] in <5893d081904cf4daa745038381d09358>:0 at FSI_0005.Build.generateCSharpBindingsForCustom (FSI_0005.Build+Pod pod) [0x00299] in <5c0f14e870074fc2aaf3eead710379c2>:0 at FSI_0005.Build.generateBindingForPod (FSI_0005.Build+Pod pod) [0x00143] in <5c0f14e870074fc2aaf3eead710379c2>:0 at [email protected] (FSI_0005.Build+Pod pod) [0x00001] in <5c0f14e870074fc2aaf3eead710379c2>:0 at Microsoft.FSharp.Primitives.Basics.List.iter[T] (Microsoft.FSharp.Core.FSharpFunc2[T,TResult] f, Microsoft.FSharp.Collections.FSharpList1[T] x) [0x00019] in <5893d081904cf4daa745038381d09358>:0 at Microsoft.FSharp.Collections.ListModule.Iterate[T] (Microsoft.FSharp.Core.FSharpFunc2[T,TResult] action, Microsoft.FSharp.Collections.FSharpList1[T] list) [0x00001] in <5893d081904cf4daa745038381d09358>:0 at [email protected] (Microsoft.FSharp.Core.Unit unitVar0) [0x0014d] in <5c0f14e870074fc2aaf3eead710379c2>:0 at Fake.TargetHelper+targetFromTemplate@209-1[a].Invoke (Microsoft.FSharp.Core.Unit unitVar0) [0x00001] in <5978411fccf1c534a74503831f417859>:0 at Fake.TargetHelper.runSingleTarget (Fake.TargetHelper+TargetTemplate`1[a] target) [0x0004b] in <5978411fccf1c534a74503831f417859>:0


Build Time Report

Target Duration


Bind Failure

Status: Failure

Stacktrace:

at <0xffffffff> lookup_data_table () failed for 0x7fead2d02dc0

bind.sh: line 15: 9647 Abort trap: 6 mono --debug --runtime=v4.0 packages/Auto/FAKE/tools/FAKE.exe ./build.fsx $@

This code objc-automatic Pavel$ sharpie bind -output bindings/XCDYouTubeKit -sdk "iphoneos" -scope pods/XCDYouTubeKit/XCode/build-out/Debug-iphoneos/XCDYouTubeKit -n DreamTeam.Xamarin.XCDYouTubeKit -c -I pods/XCDYouTubeKit/XCode/Pods/Headers/Private -Ipods/XCDYouTubeKit/XCode/Pods/Headers/Public -v -v -v finished with:

Done. Exiting with error code 1. error: no sources specified

Polyariz avatar Mar 22 '18 20:03 Polyariz

Hey ! Any updates on it?

Emixam23 avatar Aug 08 '18 14:08 Emixam23

Bump! I am running into the same issue with the Firebase/MLVision package... ... lipo -create -output pods/GoogleUtilities.Environment/XCode/build-out/libGoogleUtilities.a /Users/appdevelopers/Documents/DevSpaces/Thomas_Phillips/objc-automatic-master/pods/GoogleUtilities.Environment/XCode/build-out/libGoogleUtilities.device.a /Users/appdevelopers/Documents/DevSpaces/Thomas_Phillips/objc-automatic-master/pods/GoogleUtilities.Environment/XCode/build-out/libGoogleUtilities.sim.a

sharpie bind -output bindings/GoogleUtilities.Environment -sdk "iphoneos" -scope pods/GoogleUtilities.Environment/XCode/build-out/Debug-iphoneos/GoogleUtilities -n DreamTeam.Xamarin.GoogleUtilities.Environment -c -I pods/GoogleUtilities.Environment/XCode/Pods/Headers/Private -Ipods/GoogleUtilities.Environment/XCode/Pods/Headers/Public -v  Done. Exiting with error code 1. error: no sources specified Running build failed. Error: System.Exception: Error during sharpie bind -output bindings/GoogleUtilities.Environment -sdk "iphoneos" -scope pods/GoogleUtilities.Environment/XCode/build-out/Debug-iphoneos/GoogleUtilities -n DreamTeam.Xamarin.GoogleUtilities.Environment -c -I pods/GoogleUtilities.Environment/XCode/Pods/Headers/Private -Ipods/GoogleUtilities.Environment/XCode/Pods/Headers/Public -v at [email protected] (System.String message) [0x00001] in :0 at Microsoft.FSharp.Core.PrintfImpl+StringPrintfEnv1[TResult].Finalize () [0x00012] in <5893d081904cf4daa745038381d09358>:0 at Microsoft.FSharp.Core.PrintfImpl+Final1@224[TState,TResidue,TResult,A].Invoke (Microsoft.FSharp.Core.FSharpFunc2[T,TResult] env, A a) [0x00038] in <5893d081904cf4daa745038381d09358>:0 at Microsoft.FSharp.Core.OptimizedClosures+Invoke@3253[T2,TResult,T1].Invoke (T2 u) [0x00001] in <5893d081904cf4daa745038381d09358>:0 at FSI_0005.Build.generateCSharpBindingsForCustom (FSI_0005.Build+Pod pod) [0x0029e] in :0 at FSI_0005.Build.generateBindingForPod (FSI_0005.Build+Pod pod) [0x00143] in :0 at [email protected] (FSI_0005.Build+Pod pod) [0x00001] in :0 at Microsoft.FSharp.Primitives.Basics.List.iter[T] (Microsoft.FSharp.Core.FSharpFunc2[T,TResult] f, Microsoft.FSharp.Collections.FSharpList1[T] x) [0x00019] in <5893d081904cf4daa745038381d09358>:0 at Microsoft.FSharp.Collections.ListModule.Iterate[T] (Microsoft.FSharp.Core.FSharpFunc2[T,TResult] action, Microsoft.FSharp.Collections.FSharpList1[T] list) [0x00001] in <5893d081904cf4daa745038381d09358>:0 at [email protected] (Microsoft.FSharp.Core.Unit unitVar0) [0x0014d] in :0 at Fake.TargetHelper+targetFromTemplate@209-1[a].Invoke (Microsoft.FSharp.Core.Unit unitVar0) [0x00001] in <5978411fccf1c534a74503831f417859>:0 at Fake.TargetHelper.runSingleTarget (Fake.TargetHelper+TargetTemplate`1[a] target) [0x0004b] in <5978411fccf1c534a74503831f417859>:0 ...

Any help would be much appreciated!

  • Tom

Maxgamerboy1 avatar Sep 24 '18 11:09 Maxgamerboy1

@Polyariz @Maxgamerboy1 looking into the issue as well. Will try to give you an update this week. Thank you for your understanding

alexsorokoletov avatar Sep 27 '18 15:09 alexsorokoletov

Any news about this? I have the same problem with MLVision as @Maxgamerboy1

jamesbhto avatar Oct 06 '18 10:10 jamesbhto

@alexsorokoletov , Any update on this? I also have this problem with other pods.

devesurendra avatar Oct 08 '18 10:10 devesurendra

I'm working on an update, probably this or next week it will be ready. Did not get to the complex pods yet, like MLVision or any other with dependency tree.

alexsorokoletov avatar Oct 08 '18 14:10 alexsorokoletov

it gives error which cocapods try to sharpie waiting your news thanks.

rtarta avatar Oct 11 '18 13:10 rtarta

@alexsorokoletov Hello! has there been any progress made on this?

Maxgamerboy1 avatar Nov 08 '18 15:11 Maxgamerboy1

I have the same issue here, anyone fixes it

minaairsupport avatar Jan 22 '19 22:01 minaairsupport

Hi everyone! Not good news, I've spent quite some time to make the tool working again, however it's still half-working. Reasons are multiple dependencies were updated (pods, xcode, etc) and it was hard to make it work on simpler pods.

I'm not seeing any opening in my schedule to finish it any time soon and do not want you to keep waiting. Probably now it is easier to make a binding manually or try something like Xamapod.

I really appreciate your interest.

P.S.: https://xkcd.com/1205/ https://xkcd.com/1205/

alexsorokoletov avatar Jan 23 '19 17:01 alexsorokoletov