diff --git a/CHANGELOG.md b/CHANGELOG.md index 4e79021e8..a816c409e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## Unreleased + +### Fixes + +- Sentry no longer requires Xcode projects to be exported on macOS ([#442](https://github.com/getsentry/sentry-unity/pull/442)) + ## 0.7.0 ### Features diff --git a/src/Sentry.Unity.Editor.iOS/BuildPostProcess.cs b/src/Sentry.Unity.Editor.iOS/BuildPostProcess.cs index ef18e251c..6556da88e 100644 --- a/src/Sentry.Unity.Editor.iOS/BuildPostProcess.cs +++ b/src/Sentry.Unity.Editor.iOS/BuildPostProcess.cs @@ -60,7 +60,7 @@ private static void CopyFrameworkToBuildDirectory(string pathToProject, IDiagnos var packageName = SentryPackageInfo.GetName(); var frameworkDirectory = PlayerSettings.iOS.sdkVersion == iOSSdkVersion.DeviceSDK ? "Device" : "Simulator"; - var frameworkPath = Path.Combine("Packages", packageName, "Plugins", "iOS", frameworkDirectory, "Sentry.framework"); + var frameworkPath = Path.GetFullPath(Path.Combine("Packages", packageName, "Plugins", "iOS", frameworkDirectory, "Sentry.framework")); if (Directory.Exists(frameworkPath)) { logger?.LogDebug("Copying Sentry.framework from '{0}' to '{1}'", frameworkPath, targetPath); diff --git a/src/Sentry.Unity.Editor.iOS/SentryXcodeProject.cs b/src/Sentry.Unity.Editor.iOS/SentryXcodeProject.cs index 801924ee6..7f3d656e6 100644 --- a/src/Sentry.Unity.Editor.iOS/SentryXcodeProject.cs +++ b/src/Sentry.Unity.Editor.iOS/SentryXcodeProject.cs @@ -55,8 +55,8 @@ internal void ReadFromProjectFile() public void AddSentryFramework() { - var frameworkPath = Path.Combine(_projectRoot, "Frameworks", FrameworkName); - var frameworkGuid = _project.AddFile(frameworkPath, frameworkPath); + var relativeFrameworkPath = Path.Combine("Frameworks", FrameworkName); + var frameworkGuid = _project.AddFile(relativeFrameworkPath, relativeFrameworkPath); var mainTargetGuid = _project.GetUnityMainTargetGuid(); var unityFrameworkTargetGuid = _project.GetUnityFrameworkTargetGuid();