Skip to content
This repository was archived by the owner on Oct 25, 2021. It is now read-only.

mono-support.h:36:10: error: 'xamarin/xamarin.h' file not found #791

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions objcgen/embedder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,7 @@ public int Compile ()
*/

foreach (var build_info in build_infos) {
lipo_files.Clear();
foreach (var arch in build_info.Architectures) {
var archOutputDirectory = Path.Combine (OutputDirectory, arch);
Directory.CreateDirectory (archOutputDirectory);
Expand Down Expand Up @@ -477,13 +478,13 @@ public int Compile ()
case Platform.macOSSystem:
case Platform.macOSModern:
case Platform.macOSFull:
common_options.Append ("-I/Library/Frameworks/Xamarin.Mac.framework/Versions/Current/include ");
common_options.Append ("-I/Library/Frameworks/Xamarin.Mac.framework/Versions/Current/SDKs/Xamarin.macOS.sdk/include ");
common_options.Append ("-DXAMARIN_MAC ");
break;
case Platform.iOS:
case Platform.tvOS:
case Platform.watchOS:
common_options.Append ($"-I/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/SDKs/{build_info.XamariniOSSDK}/usr/include ");
common_options.Append ($"-I/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/SDKs/{build_info.XamariniOSSDK}/include ");
common_options.Append ("-DXAMARIN_IOS ");
break;
default:
Expand Down Expand Up @@ -524,7 +525,7 @@ public int Compile ()
options.Append ($"-o ").Append (Utils.Quote (dynamic_ofile)).Append (" ");
lipo_files.Add (dynamic_ofile);
if (!string.IsNullOrEmpty (build_info.XamariniOSSDK)) {
options.Append ($"-L/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/SDKs/{build_info.XamariniOSSDK}/usr/lib ");
options.Append ($"-L/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/SDKs/{build_info.XamariniOSSDK}/lib ");
options.Append ("-lxamarin ");
}
else {
Expand Down