xamarin / xamarin-macios

.NET for iOS, Mac Catalyst, macOS, and tvOS provide open-source bindings of the Apple SDKs for use with .NET managed languages such as C#
Other
2.45k stars 511 forks source link

Objective Sharpie - Binding fails with "header not found error" #4807

Open alexkblount opened 6 years ago

alexkblount commented 6 years ago

Steps to Reproduce

  1. open terminal
  2. sharpie pod init ios AzureIoTHubClient
  3. allow to complete
  4. sharpie pod bind

Expected Behavior

APIDefinition and StructsAndEnums cs files are created.

Actual Behavior

process does not complete, error is displayed advising header files cannot be found.

I was able to work around by hand editing the header references in the modulemap and the referenced headers to use fully qualified file paths.

Environment

=== Visual Studio Enterprise 2017 for Mac ===

Version 7.6.4 (build 22) Installation UUID: 59e8a0c2-a674-42a6-b852-843de896e0eb Runtime: Mono 5.12.0.301 (2018-02/4fe3280bba1) (64-bit) GTK+ 2.24.23 (Raleigh theme) Xamarin.Mac 4.4.1.178 (master / eeaeb7e6)

Package version: 512000301

=== NuGet ===

Version: 4.3.1.4445

=== .NET Core ===

Runtime: /usr/local/share/dotnet/dotnet Runtime Versions: 2.1.2 2.1.1 SDK: /usr/local/share/dotnet/sdk/2.1.302/Sdks SDK Versions: 2.1.302 2.1.301 MSBuild SDKs: /Library/Frameworks/Mono.framework/Versions/5.12.0/lib/mono/msbuild/15.0/bin/Sdks

=== Xamarin.Profiler ===

Version: 1.6.3 Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler

=== Apple Developer Tools ===

Xcode 9.4.1 (14161) Build 9F2000

=== Xamarin.Mac ===

Version: 4.6.0.14 (Visual Studio Enterprise) Hash: 1a6e2786 Branch: Build date: 2018-08-28 00:12:06-0400

=== Xamarin.iOS ===

Version: 11.14.0.14 (Visual Studio Enterprise) Hash: 1a6e2786 Branch: HEAD Build date: 2018-08-28 00:12:06-0400

=== Xamarin.Android ===

Version: 9.0.0.20 (Visual Studio Enterprise) Android SDK: /Users/blounty/Library/Developer/Xamarin/android-sdk-macosx Supported Android versions: 7.1 (API level 25) 8.1 (API level 27)

SDK Tools Version: 26.1.1 SDK Platform Tools Version: 28.0.0 SDK Build Tools Version: 28.0.2

Java SDK: /usr java version "1.8.0_131" Java(TM) SE Runtime Environment (build 1.8.0_131-b11) Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)

Android Designer EPL code available here: https://github.com/xamarin/AndroidDesigner.EPL

=== Xamarin Inspector ===

Version: 1.4.3 Hash: db27525 Branch: 1.4-release Build date: Mon, 09 Jul 2018 21:20:18 GMT Client compatibility: 1

=== Build Information ===

Release ID: 706040022 Git revision: c20766ac3664b80b4098ec4181abcc73ea3a4a2c Build date: 2018-09-07 17:05:17+00 Build branch: release-7.6 Xamarin extensions: 9c227549870ec221f51f5dfb1f05da688ee71911

=== Operating System ===

Mac OS X 10.13.6 Darwin 17.7.0 Darwin Kernel Version 17.7.0 Thu Jun 21 22:53:14 PDT 2018 root:xnu-4570.71.2~1/RELEASE_X86_64 x86_64

Objective Sharpie Version:- 3.4.0-c0f0e73

alexkblount commented 6 years ago

build-log.txt

Adding output log

EJAtPhunWare commented 5 years ago

is there a work around for this issue?

rubo commented 5 years ago

Similar issue here although all the required header files are there.

petro2050 commented 1 year ago

Same issue for another package. Sharpie needs love.