Sharpie doesn't see installed sdks

victor.zuevvictor.zuev UAMember ✭✭
edited January 2016 in Xamarin.iOS

Hi.
I try to bind InfColorPicker library using this Walkthrough. But I'm stuck on Using Objective Sharpie step. All previous steps I passed without any problems

I run command:

sharpie bind --output=InfColorPicker --namespace=InfColorPicker --sdk=iphoneos8.1 /Users/admin/Documents/Projects/LinkNativeLibs/InfColorPicker/InfColorPicker/InfColorPicker/InfColorPicker/*.h

and have following error:

[ERROR] FATAL UNHANDLED EXCEPTION: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> Sharpie.Tooling.Tool+ExitException: Exception of type 'Sharpie.Tooling.Tool+ExitException' was thrown. at Sharpie.ParseTool+ParseOptionSection.SetTargetSdk (System.String sdkIdentifier) in <filename unknown>:line 0 at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) in <filename unknown>:line 0 --- End of inner exception stack trace --- at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) in <filename unknown>:line 0 at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) in <filename unknown>:line 0 at Sharpie.Tooling.ReflectionBoundOption.Bind (System.String value) in <filename unknown>:line 0 at Sharpie.Tooling.Tool.ProcessArgument () in <filename unknown>:line 0 at Sharpie.ParseTool.ProcessArgument () in <filename unknown>:line 0 at Sharpie.Tooling.Tool.ProcessArguments () in <filename unknown>:line 0 at Sharpie.Tooling.Tool.Run (IEnumerable 1 args) in <filename unknown>:line 0 at Sharpie.Tooling.ToolRunnerTool.Run () in <filename unknown>:line 0 at Sharpie.Entry+SharpieToolRunnerTool.Run () in <filename unknown>:line 0 at Sharpie.Tooling.Tool.Run (IEnumerable 1 args) in <filename unknown>:line 0 at Sharpie.Tooling.ToolRunnerTool.Run (IEnumerable 1 args, System.Action1 aboutToRunToolHandler) in <filename unknown>:line 0 at Sharpie.Entry.Main (System.String[] args) in <filename unknown>:line 0

I know for sure that iphoneos8.1 is installed:

xcodebuild -showsdks

OS X SDKs: OS X 10.9 -sdk macosx10.9 OS X 10.10 -sdk macosx10.10

iOS SDKs: iOS 8.1 -sdk iphoneos8.1

iOS Simulator SDKs: Simulator - iOS 7.1 -sdk iphonesimulator7.1 Simulator - iOS 8.1 -sdk iphonesimulator8.1

But sharpie doesn't see it:

sharpie xcode -sdks

sdk: macosx10.10 arch: x86_64 i386

Could someone please give me an advise how to fix this issue?
Thanks!

Best Answers

Answers

  • DavidJanneyDavidJanney USMember

    Did you ever get this resolved? I ran into this issue as well.

  • YeHeYeHe USMember

    I am targeting iOS9,3, the answer above doesn't seem to resolve the problem.

  • abockabock USXamarin Team, Insider Xamurai
    edited June 2016

    What does the output of the following display:

    sharpie xcode -sdks -v

    And:

    xcodebuild -showsdks

    sharpie xcode -sdks must show the SDK you're interested in for any other commands to work. Notably, Sharpie searches for SDKs within Xcode installations at paths matching /Applications/Xcode*.app (e.g. /Applications/Xcode.app, /Applications/Xcode63.app, etc.)

    Also note that this is explained in the documentation.

  • ClintonLandryClintonLandry USUniversity

    I seem to be in the same boat as YeHe. I have 2 version of xcode installed inside of the /Applications folder with names of Xcode.app and Xcode2.app.

    sharpie xcode -sdks -v

    Only finds the 9.3 iphone sdk and not the iphone 8.2 sdk.

    xcodebuild -showsdks

    Only finds whichever xcode-select --switch I set the path to. Whether it is 9.3 or 8.2s sdk does not matter to sharpie xcode -sdk -v it just always finds 9.3.

Sign In or Register to comment.