Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
buenaflor committed Jan 31, 2025
1 parent b2ba00f commit 6d90d3f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,13 @@ internal class FrameworkPathResolver(
private fun validateCustomPath(path: String) {
if (!File(path).exists()) {
throw FrameworkLinkingException(
"Custom framework path not found: $path\n" +
"Verify the path ends with either:\n" +
"- Sentry.xcframework (static)\n" +
"- Sentry-Dynamic.xcframework (dynamic)"
"Custom framework path not found or does not exist: $path"
)
}

if (path.isStaticFrameworkPath().not() && path.isDynamicFrameworkPath().not()) {
throw FrameworkLinkingException("Invalid framework at $path - path must end with Sentry.xcframework or Sentry-Dynamic.xcframework")
}
}

private fun getFrameworkPath(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ abstract class FrameworkPathValueSource : ValueSource<String?, FrameworkPathValu
execOperations.exec {
it.commandLine(
"bash", "-c",
// Use the full path (replace ~ with $HOME) and escape quotes correctly
"find \"${System.getProperty("user.home")}/Library/Developer/Xcode/DerivedData\" " +
"-name $xcFrameworkName " +
"-exec stat -f \"%m %N\" {} \\; | " +
Expand Down

0 comments on commit 6d90d3f

Please sign in to comment.