Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SoupChef demo app does not build #5800

Closed
Krumelur opened this issue Mar 22, 2019 · 3 comments
Closed

SoupChef demo app does not build #5800

Krumelur opened this issue Mar 22, 2019 · 3 comments
Labels
iOS Issues affecting Xamarin.iOS need-info Waiting for more information before the bug can be investigated support The issue is related to support

Comments

@Krumelur
Copy link

Steps to Reproduce

  1. Download the SoupChef app from https://developer.xamarin.com/samples/monotouch/ios12/SoupChef/
  2. Open solution in VS (Mac)
  3. Build.

Expected Behavior

App should build and run.

Actual Behavior

Build fails with error:

OrderSoupIntentBinding/BindingActions.targets(7,7): Error MSB3073: The command "make -C ../OrderSoupIntentStaticLib" exited with code 2. (MSB3073) (OrderSoupIntentBinding)

Environment

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

Version 7.8.3 (build 2)
Installation UUID: 60acfbca-a500-426e-98c8-e90677e7a44e
	GTK+ 2.24.23 (Raleigh theme)
	Xamarin.Mac 5.0.0.0 ( / b40230c0)

	Package version: 516010000

=== Mono Framework MDK ===

Runtime:
	Mono 5.16.1.0 (2018-06/a76b50e5faa) (64-bit)
	Package version: 516010000

=== NuGet ===

Version: 4.8.2.5835

=== .NET Core ===

Runtime: /usr/local/share/dotnet/dotnet
Runtime Versions:
	2.1.9
	2.1.8
	2.1.7
	2.1.2
	2.0.5
SDK: /usr/local/share/dotnet/sdk/2.1.505/Sdks
SDK Versions:
	2.1.505
	2.1.504
	2.1.503
	2.1.302
	2.1.4
MSBuild SDKs: /Library/Frameworks/Mono.framework/Versions/5.16.1/lib/mono/msbuild/15.0/bin/Sdks

=== Xamarin.Profiler ===

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

=== Updater ===

Version: 11

=== Xamarin.Android ===

Version: 9.1.8.0 (Visual Studio Enterprise)
Android SDK: /Users/rene/Library/Developer/Xamarin/android-sdk-macosx
	Supported Android versions:
		8.0 (API level 26)
		8.1 (API level 27)

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

=== Microsoft Mobile OpenJDK ===

Java SDK: /Users/rene/Library/Developer/Xamarin/jdk/microsoft_dist_openjdk_8.0.25
1.8.0-25
Android Designer EPL code available here:
https://github.com/xamarin/AndroidDesigner.EPL

=== Android Device Manager ===

Version: 7.8.1.0
Hash: 8924ea4a

=== Apple Developer Tools ===

Xcode 10.1 (14460.46)
Build 10B61

=== Xamarin.Mac ===

Version: 5.2.1.16 (Visual Studio Enterprise)
Hash: 2dc06c71
Branch: 
Build date: 2019-02-12 23:09:50-0500

=== Xamarin.iOS ===

Version: 12.2.1.16 (Visual Studio Enterprise)
Hash: 2dc06c71
Branch: d15-9
Build date: 2019-02-12 23:09:50-0500

=== 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: 708030002
Git revision: fd02e670fdd6b101bc9c08b1cc5b7710d9f58cd8
Build date: 2019-03-08 10:30:21+00
Build branch: release-7.8
Xamarin extensions: 1f72f0a3737128552336f27e189d3c4f0cdebd00

=== Operating System ===

Mac OS X 10.14.3
Darwin 18.2.0 Darwin Kernel Version 18.2.0
    Thu Dec 20 20:46:53 PST 2018
    root:xnu-4903.241.1~1/RELEASE_X86_64 x86_64

Build Logs

Building SoupChef (Debug|iPhoneSimulator)
Build started 22.03.2019 08:20:52.
__________________________________________________
Project "/Users/rene/Desktop/SoupChef/OrderSoupIntentBinding/OrderSoupIntentBinding.csproj" (Build target(s)):

Target PrepareBinding:
    make -C ../OrderSoupIntentStaticLib
    make: sharpie: No such file or directory
    sharpie bind -scope OrderSoupIntentStaticLib -output bo -namespace SoupChef -sdk iphoneos12.0 OrderSoupIntentStaticLib/OrderSoupIntent.h
    make: *** [bind] Error 1
    /Users/rene/Desktop/SoupChef/OrderSoupIntentBinding/BindingActions.targets(20,7): error MSB3073: The command "make -C ../OrderSoupIntentStaticLib" exited with code 2.
Done building target "PrepareBinding" in project "OrderSoupIntentBinding.csproj" -- FAILED.

Done building project "OrderSoupIntentBinding.csproj" -- FAILED.

Build FAILED.

/Users/rene/Desktop/SoupChef/OrderSoupIntentBinding/BindingActions.targets(20,7): error MSB3073: The command "make -C ../OrderSoupIntentStaticLib" exited with code 2.
    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:00.21

========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

@spouliot
Copy link
Contributor

https://developer.xamarin.com/samples/monotouch/ios12/SoupChef/#Building_the_static_library_and_C_bindings_definitions

^ Have you built the native part as mentioned in the sample README ?

@spouliot spouliot added iOS Issues affecting Xamarin.iOS need-info Waiting for more information before the bug can be investigated support The issue is related to support labels Mar 22, 2019
@Krumelur
Copy link
Author

To be honest, no I did not notice that. I followed the docs here: https://docs.microsoft.com/en-us/xamarin/ios/platform/introduction-to-ios12/siri-shortcuts

They literally just mention to "build and run" it.

But you're right that could very well be it. I'll check.

@rolfbjarne
Copy link
Member

There was a bug that prevented the SoupChef sample from compiling with Xcode 10.1 or later.

It's been fixed now: xamarin/ios-samples@064871f

@xamarin xamarin locked as resolved and limited conversation to collaborators May 3, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
iOS Issues affecting Xamarin.iOS need-info Waiting for more information before the bug can be investigated support The issue is related to support
Projects
None yet
Development

No branches or pull requests

3 participants