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

chore: Remove PrivateSentrySDKOnly.h from umbrella header #2349

Merged
merged 4 commits into from
Nov 8, 2022

Conversation

brustolin
Copy link
Contributor

@brustolin brustolin commented Nov 2, 2022

Remove PrivateSentrySDKOnly.h from umbrella headers to prevent users from use it by mistake.

#skip-changelog

Copy link
Member

@kahest kahest left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@philipphofmann
Copy link
Member

Wouldn't it make sense to do everything in one PR instead? Now, this PR doesn't add any value.

@brustolin brustolin changed the title chore: Create HybridSdk subspec for cocoapod Remove PrivateSentrySDKOnly.h from umbrella header Nov 3, 2022
@github-actions
Copy link

github-actions bot commented Nov 3, 2022

Performance metrics 🚀

  Plain With Sentry Diff
Startup time 1219.86 ms 1238.62 ms 18.76 ms
Size 20.50 KiB 365.18 KiB 344.68 KiB

Baseline results on branch: master

Startup times

Revision Plain With Sentry Diff
bdfccaa 1202.83 ms 1228.96 ms 26.13 ms
0fdf0b2 1249.20 ms 1254.08 ms 4.88 ms
d47c2c0 1230.55 ms 1250.22 ms 19.67 ms
64225be 1213.96 ms 1227.62 ms 13.66 ms
b15627c 1228.88 ms 1269.70 ms 40.82 ms
f6eee7c 1227.39 ms 1240.76 ms 13.37 ms
5ecf9f6 1230.76 ms 1232.86 ms 2.10 ms
0fdf0b2 1266.27 ms 1277.90 ms 11.63 ms
6dc0bd1 1220.49 ms 1237.44 ms 16.95 ms
7138b7d 1243.40 ms 1252.08 ms 8.68 ms

App size

Revision Plain With Sentry Diff
bdfccaa 20.50 KiB 361.80 KiB 341.29 KiB
0fdf0b2 20.51 KiB 332.90 KiB 312.39 KiB
d47c2c0 20.50 KiB 342.31 KiB 321.80 KiB
64225be 20.50 KiB 339.02 KiB 318.52 KiB
b15627c 20.50 KiB 337.76 KiB 317.25 KiB
f6eee7c 20.50 KiB 361.89 KiB 341.39 KiB
5ecf9f6 20.51 KiB 332.66 KiB 312.15 KiB
0fdf0b2 20.51 KiB 332.90 KiB 312.39 KiB
6dc0bd1 20.51 KiB 333.58 KiB 313.07 KiB
7138b7d 20.51 KiB 331.79 KiB 311.28 KiB

Previous results on branch: feat/before-removing-PrivateSDK

Startup times

Revision Plain With Sentry Diff
3c0a8d2 1221.55 ms 1245.34 ms 23.79 ms
212d5eb 1212.42 ms 1235.22 ms 22.80 ms

App size

Revision Plain With Sentry Diff
3c0a8d2 20.50 KiB 365.18 KiB 344.68 KiB
212d5eb 20.50 KiB 365.18 KiB 344.68 KiB

@brustolin brustolin changed the title Remove PrivateSentrySDKOnly.h from umbrella header chore: Remove PrivateSentrySDKOnly.h from umbrella header Nov 3, 2022
Copy link
Member

@philipphofmann philipphofmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sources/Sentry/include/PrivateSentrySDKOnly.h Show resolved Hide resolved
@philipphofmann
Copy link
Member

@brustolin, what's stopping us from merging this PR?

@brustolin brustolin merged commit 01057a9 into master Nov 8, 2022
@brustolin brustolin deleted the feat/before-removing-PrivateSDK branch November 8, 2022 10:42
kevinrenskers added a commit that referenced this pull request Nov 8, 2022
* master:
  chore: Remove PrivateSentrySDKOnly.h from umbrella header (#2349)
  feat: Track usage of the enableCaptureFailedRequests option (#2368)
kevinrenskers added a commit that referenced this pull request Nov 9, 2022
* master:
  chore: Add match_local to Fastfile
  Revert "feat: Track usage of the enableCaptureFailedRequests option (#2368)" (#2371)
  chore: Remove PrivateSentrySDKOnly.h from umbrella header (#2349)
  feat: Track usage of the enableCaptureFailedRequests option (#2368)
  Update SentryNetworkTrackerIntegrationTests.swift (#2366)
  Fix typos in NetworkTrackerIntegrationTests (#2367)
  build(deps): bump github/codeql-action from 2.1.30 to 2.1.31 (#2364)
@denizdogan
Copy link

It seems that after this change was made, I get build errors in my Tuist-generated project. I'm no expert on this, but why is it that a file named "PrivateSentrySDKOnly.h" was added to public_header_files? Was this a mistake?

In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/SentryTracer.m:3:
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/include/PrivateSentrySDKOnly.h:5:
/Users/deniz/Library/Caches/com.github.peripheryapp/DerivedData-d2d2df2-d2d2df2/Build/Products/Debug-iphoneos/Sentry.framework/Headers/SentryDefines.h:87:28: error: redefinition of 'SentryLogLevel'
typedef NS_ENUM(NSInteger, SentryLogLevel) {
                           ^
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/SentryTracer.m:1:
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/include/SentryTracer.h:1:
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/Public/SentrySpanProtocol.h:1:
/...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/Public/SentryDefines.h:87:28: note: previous definition is here
typedef NS_ENUM(NSInteger, SentryLogLevel) {
                           ^
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/SentryTracer.m:3:
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/include/PrivateSentrySDKOnly.h:5:
/Users/deniz/Library/Caches/com.github.peripheryapp/DerivedData-d2d2df2-d2d2df2/Build/Products/Debug-iphoneos/Sentry.framework/Headers/SentryDefines.h:88:5: error: redefinition of enumerator 'kSentryLogLevelNone'
    kSentryLogLevelNone = 1,
    ^
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/SentryTracer.m:1:
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/include/SentryTracer.h:1:
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/Public/SentrySpanProtocol.h:1:
/...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/Public/SentryDefines.h:88:5: note: previous definition is here
    kSentryLogLevelNone = 1,
    ^
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/SentryTracer.m:3:
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/include/PrivateSentrySDKOnly.h:5:
/Users/deniz/Library/Caches/com.github.peripheryapp/DerivedData-d2d2df2-d2d2df2/Build/Products/Debug-iphoneos/Sentry.framework/Headers/SentryDefines.h:89:5: error: redefinition of enumerator 'kSentryLogLevelError'
    kSentryLogLevelError,
    ^
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/SentryTracer.m:1:
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/include/SentryTracer.h:1:
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/Public/SentrySpanProtocol.h:1:
/...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/Public/SentryDefines.h:89:5: note: previous definition is here
    kSentryLogLevelError,
    ^
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/SentryTracer.m:3:
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/include/PrivateSentrySDKOnly.h:5:
/Users/deniz/Library/Caches/com.github.peripheryapp/DerivedData-d2d2df2-d2d2df2/Build/Products/Debug-iphoneos/Sentry.framework/Headers/SentryDefines.h:90:5: error: redefinition of enumerator 'kSentryLogLevelDebug'
    kSentryLogLevelDebug,
    ^
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/SentryTracer.m:1:
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/include/SentryTracer.h:1:
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/Public/SentrySpanProtocol.h:1:
/...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/Public/SentryDefines.h:90:5: note: previous definition is here
    kSentryLogLevelDebug,
    ^
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/SentryTracer.m:3:
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/include/PrivateSentrySDKOnly.h:5:
/Users/deniz/Library/Caches/com.github.peripheryapp/DerivedData-d2d2df2-d2d2df2/Build/Products/Debug-iphoneos/Sentry.framework/Headers/SentryDefines.h:91:5: error: redefinition of enumerator 'kSentryLogLevelVerbose'
    kSentryLogLevelVerbose
    ^
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/SentryTracer.m:1:
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/include/SentryTracer.h:1:
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/Public/SentrySpanProtocol.h:1:
/...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/Public/SentryDefines.h:91:5: note: previous definition is here
    kSentryLogLevelVerbose
    ^
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/SentryTracer.m:3:
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/include/PrivateSentrySDKOnly.h:5:
/Users/deniz/Library/Caches/com.github.peripheryapp/DerivedData-d2d2df2-d2d2df2/Build/Products/Debug-iphoneos/Sentry.framework/Headers/SentryDefines.h:97:29: error: redefinition of 'SentryLevel'
typedef NS_ENUM(NSUInteger, SentryLevel) {
                            ^
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/SentryTracer.m:1:
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/include/SentryTracer.h:1:
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/Public/SentrySpanProtocol.h:1:
/...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/Public/SentryDefines.h:97:29: note: previous definition is here
typedef NS_ENUM(NSUInteger, SentryLevel) {
                            ^
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/SentryTracer.m:3:
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/include/PrivateSentrySDKOnly.h:5:
/Users/deniz/Library/Caches/com.github.peripheryapp/DerivedData-d2d2df2-d2d2df2/Build/Products/Debug-iphoneos/Sentry.framework/Headers/SentryDefines.h:99:5: error: redefinition of enumerator 'kSentryLevelNone'
    kSentryLevelNone = 0,
    ^
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/SentryTracer.m:1:
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/include/SentryTracer.h:1:
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/Public/SentrySpanProtocol.h:1:
/...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/Public/SentryDefines.h:99:5: note: previous definition is here
    kSentryLevelNone = 0,
    ^
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/SentryTracer.m:3:
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/include/PrivateSentrySDKOnly.h:5:
/Users/deniz/Library/Caches/com.github.peripheryapp/DerivedData-d2d2df2-d2d2df2/Build/Products/Debug-iphoneos/Sentry.framework/Headers/SentryDefines.h:101:5: error: redefinition of enumerator 'kSentryLevelDebug'
    kSentryLevelDebug = 1,
    ^
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/SentryTracer.m:1:
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/include/SentryTracer.h:1:
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/Public/SentrySpanProtocol.h:1:
/...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/Public/SentryDefines.h:101:5: note: previous definition is here
    kSentryLevelDebug = 1,
    ^
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/SentryTracer.m:3:
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/include/PrivateSentrySDKOnly.h:5:
/Users/deniz/Library/Caches/com.github.peripheryapp/DerivedData-d2d2df2-d2d2df2/Build/Products/Debug-iphoneos/Sentry.framework/Headers/SentryDefines.h:102:5: error: redefinition of enumerator 'kSentryLevelInfo'
    kSentryLevelInfo = 2,
    ^
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/SentryTracer.m:1:
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/include/SentryTracer.h:1:
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/Public/SentrySpanProtocol.h:1:
/...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/Public/SentryDefines.h:102:5: note: previous definition is here
    kSentryLevelInfo = 2,
    ^
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/SentryTracer.m:3:
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/include/PrivateSentrySDKOnly.h:5:
/Users/deniz/Library/Caches/com.github.peripheryapp/DerivedData-d2d2df2-d2d2df2/Build/Products/Debug-iphoneos/Sentry.framework/Headers/SentryDefines.h:103:5: error: redefinition of enumerator 'kSentryLevelWarning'
    kSentryLevelWarning = 3,
    ^
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/SentryTracer.m:1:
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/include/SentryTracer.h:1:
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/Public/SentrySpanProtocol.h:1:
/...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/Public/SentryDefines.h:103:5: note: previous definition is here
    kSentryLevelWarning = 3,
    ^
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/SentryTracer.m:3:
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/include/PrivateSentrySDKOnly.h:5:
/Users/deniz/Library/Caches/com.github.peripheryapp/DerivedData-d2d2df2-d2d2df2/Build/Products/Debug-iphoneos/Sentry.framework/Headers/SentryDefines.h:104:5: error: redefinition of enumerator 'kSentryLevelError'
    kSentryLevelError = 4,
    ^
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/SentryTracer.m:1:
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/include/SentryTracer.h:1:
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/Public/SentrySpanProtocol.h:1:
/...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/Public/SentryDefines.h:104:5: note: previous definition is here
    kSentryLevelError = 4,
    ^
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/SentryTracer.m:3:
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/include/PrivateSentrySDKOnly.h:5:
/Users/deniz/Library/Caches/com.github.peripheryapp/DerivedData-d2d2df2-d2d2df2/Build/Products/Debug-iphoneos/Sentry.framework/Headers/SentryDefines.h:105:5: error: redefinition of enumerator 'kSentryLevelFatal'
    kSentryLevelFatal = 5
    ^
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/SentryTracer.m:1:
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/include/SentryTracer.h:1:
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/Public/SentrySpanProtocol.h:1:
/...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/Public/SentryDefines.h:105:5: note: previous definition is here
    kSentryLevelFatal = 5
    ^
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/SentryTracer.m:3:
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/include/PrivateSentrySDKOnly.h:5:
/Users/deniz/Library/Caches/com.github.peripheryapp/DerivedData-d2d2df2-d2d2df2/Build/Products/Debug-iphoneos/Sentry.framework/Headers/SentryDefines.h:111:28: error: redefinition of 'SentryPermissionStatus'
typedef NS_ENUM(NSInteger, SentryPermissionStatus) {
                           ^
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/SentryTracer.m:1:
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/include/SentryTracer.h:1:
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/Public/SentrySpanProtocol.h:1:
/...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/Public/SentryDefines.h:111:28: note: previous definition is here
typedef NS_ENUM(NSInteger, SentryPermissionStatus) {
                           ^
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/SentryTracer.m:3:
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/include/PrivateSentrySDKOnly.h:5:
/Users/deniz/Library/Caches/com.github.peripheryapp/DerivedData-d2d2df2-d2d2df2/Build/Products/Debug-iphoneos/Sentry.framework/Headers/SentryDefines.h:112:5: error: redefinition of enumerator 'kSentryPermissionStatusUnknown'
    kSentryPermissionStatusUnknown = 0,
    ^
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/SentryTracer.m:1:
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/include/SentryTracer.h:1:
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/Public/SentrySpanProtocol.h:1:
/...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/Public/SentryDefines.h:112:5: note: previous definition is here
    kSentryPermissionStatusUnknown = 0,
    ^
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/SentryTracer.m:3:
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/include/PrivateSentrySDKOnly.h:5:
/Users/deniz/Library/Caches/com.github.peripheryapp/DerivedData-d2d2df2-d2d2df2/Build/Products/Debug-iphoneos/Sentry.framework/Headers/SentryDefines.h:113:5: error: redefinition of enumerator 'kSentryPermissionStatusGranted'
    kSentryPermissionStatusGranted,
    ^
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/SentryTracer.m:1:
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/include/SentryTracer.h:1:
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/Public/SentrySpanProtocol.h:1:
/...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/Public/SentryDefines.h:113:5: note: previous definition is here
    kSentryPermissionStatusGranted,
    ^
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/SentryTracer.m:3:
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/include/PrivateSentrySDKOnly.h:5:
/Users/deniz/Library/Caches/com.github.peripheryapp/DerivedData-d2d2df2-d2d2df2/Build/Products/Debug-iphoneos/Sentry.framework/Headers/SentryDefines.h:114:5: error: redefinition of enumerator 'kSentryPermissionStatusPartial'
    kSentryPermissionStatusPartial,
    ^
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/SentryTracer.m:1:
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/include/SentryTracer.h:1:
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/Public/SentrySpanProtocol.h:1:
/...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/Public/SentryDefines.h:114:5: note: previous definition is here
    kSentryPermissionStatusPartial,
    ^
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/SentryTracer.m:3:
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/include/PrivateSentrySDKOnly.h:5:
/Users/deniz/Library/Caches/com.github.peripheryapp/DerivedData-d2d2df2-d2d2df2/Build/Products/Debug-iphoneos/Sentry.framework/Headers/SentryDefines.h:115:5: error: redefinition of enumerator 'kSentryPermissionStatusDenied'
    kSentryPermissionStatusDenied
    ^
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/SentryTracer.m:1:
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/include/SentryTracer.h:1:
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/Public/SentrySpanProtocol.h:1:
/...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/Public/SentryDefines.h:115:5: note: previous definition is here
    kSentryPermissionStatusDenied
    ^
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/SentryTracer.m:3:
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/include/PrivateSentrySDKOnly.h:5:
/Users/deniz/Library/Caches/com.github.peripheryapp/DerivedData-d2d2df2-d2d2df2/Build/Products/Debug-iphoneos/Sentry.framework/Headers/SentryDefines.h:122:67: error: redefinition of 'SentryLevelNames'
    "Use nameForSentryLevel() instead.") NSString *_Nonnull const SentryLevelNames[]
                                                                  ^
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/SentryTracer.m:1:
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/include/SentryTracer.h:1:
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/Public/SentrySpanProtocol.h:1:
/...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/Public/SentryDefines.h:122:67: note: previous definition is here
    "Use nameForSentryLevel() instead.") NSString *_Nonnull const SentryLevelNames[]
                                                                  ^
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/SentryTracer.m:3:
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/include/PrivateSentrySDKOnly.h:5:
/Users/deniz/Library/Caches/com.github.peripheryapp/DerivedData-d2d2df2-d2d2df2/Build/Products/Debug-iphoneos/Sentry.framework/Headers/SentryDefines.h:132:25: error: redefinition of 'defaultMaxBreadcrumbs'
static NSUInteger const defaultMaxBreadcrumbs = 100;
                        ^
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/SentryTracer.m:1:
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/include/SentryTracer.h:1:
In file included from /...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/Public/SentrySpanProtocol.h:1:
/...project.../Tuist/Dependencies/SwiftPackageManager/.build/checkouts/sentry-cocoa/Sources/Sentry/Public/SentryDefines.h:132:25: note: previous definition is here
static NSUInteger const defaultMaxBreadcrumbs = 100;
                        ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
note: Building targets in dependency order
note: Removed stale file '/Users/deniz/Library/Caches/com.github.peripheryapp/DerivedData-d2d2df2-d2d2df2/Build/Products/Debug-iphoneos/Sentry.framework/Headers/PrivateSentrySDKOnly.h'

** BUILD FAILED **

@philipphofmann
Copy link
Member

Yes, kind of a mistake, @denizdogan. Can you clean your build and retry, please?

@denizdogan
Copy link

@philipphofmann Sure thing, still breaks unfortunately:

$ rm -rf ~/Library/Developer/Xcode/DerivedData && tuist clean && tuist fetch && tuist generate -n && tuist build
...
[Sentry] Compiling SentryTracer.m
❌ /Users/deniz/Library/Developer/Xcode/DerivedData/<proj>/Build/Products/Debug-iphonesimulator/Sentry.framework/Headers/SentryDefines.h:87:28: redefinition of 'SentryLogLevel'
typedef NS_ENUM(NSInteger, SentryLogLevel) {
                           ^
❌ /Users/deniz/Library/Developer/Xcode/DerivedData/<proj>/Build/Products/Debug-iphonesimulator/Sentry.framework/Headers/SentryDefines.h:88:5: redefinition of enumerator 'kSentryLogLevelNone'
    kSentryLogLevelNone = 1,
    ^
❌ /Users/deniz/Library/Developer/Xcode/DerivedData/<proj>/Build/Products/Debug-iphonesimulator/Sentry.framework/Headers/SentryDefines.h:89:5: redefinition of enumerator 'kSentryLogLevelError'
    kSentryLogLevelError,
    ^
❌ /Users/deniz/Library/Developer/Xcode/DerivedData/<proj>/Build/Products/Debug-iphonesimulator/Sentry.framework/Headers/SentryDefines.h:90:5: redefinition of enumerator 'kSentryLogLevelDebug'
    kSentryLogLevelDebug,
    ^
❌ /Users/deniz/Library/Developer/Xcode/DerivedData/<proj>/Build/Products/Debug-iphonesimulator/Sentry.framework/Headers/SentryDefines.h:91:5: redefinition of enumerator 'kSentryLogLevelVerbose'
    kSentryLogLevelVerbose
    ^
❌ /Users/deniz/Library/Developer/Xcode/DerivedData/<proj>/Build/Products/Debug-iphonesimulator/Sentry.framework/Headers/SentryDefines.h:97:29: redefinition of 'SentryLevel'
typedef NS_ENUM(NSUInteger, SentryLevel) {
                            ^
❌ /Users/deniz/Library/Developer/Xcode/DerivedData/<proj>/Build/Products/Debug-iphonesimulator/Sentry.framework/Headers/SentryDefines.h:99:5: redefinition of enumerator 'kSentryLevelNone'
    kSentryLevelNone = 0,
    ^
❌ /Users/deniz/Library/Developer/Xcode/DerivedData/<proj>/Build/Products/Debug-iphonesimulator/Sentry.framework/Headers/SentryDefines.h:101:5: redefinition of enumerator 'kSentryLevelDebug'
    kSentryLevelDebug = 1,
    ^
❌ /Users/deniz/Library/Developer/Xcode/DerivedData/<proj>/Build/Products/Debug-iphonesimulator/Sentry.framework/Headers/SentryDefines.h:102:5: redefinition of enumerator 'kSentryLevelInfo'
    kSentryLevelInfo = 2,
    ^
❌ /Users/deniz/Library/Developer/Xcode/DerivedData/<proj>/Build/Products/Debug-iphonesimulator/Sentry.framework/Headers/SentryDefines.h:103:5: redefinition of enumerator 'kSentryLevelWarning'
    kSentryLevelWarning = 3,
    ^
❌ /Users/deniz/Library/Developer/Xcode/DerivedData/<proj>/Build/Products/Debug-iphonesimulator/Sentry.framework/Headers/SentryDefines.h:104:5: redefinition of enumerator 'kSentryLevelError'
    kSentryLevelError = 4,
    ^
❌ /Users/deniz/Library/Developer/Xcode/DerivedData/<proj>/Build/Products/Debug-iphonesimulator/Sentry.framework/Headers/SentryDefines.h:105:5: redefinition of enumerator 'kSentryLevelFatal'
    kSentryLevelFatal = 5
    ^
❌ /Users/deniz/Library/Developer/Xcode/DerivedData/<proj>/Build/Products/Debug-iphonesimulator/Sentry.framework/Headers/SentryDefines.h:111:28: redefinition of 'SentryPermissionStatus'
typedef NS_ENUM(NSInteger, SentryPermissionStatus) {
                           ^
❌ /Users/deniz/Library/Developer/Xcode/DerivedData/<proj>/Build/Products/Debug-iphonesimulator/Sentry.framework/Headers/SentryDefines.h:112:5: redefinition of enumerator 'kSentryPermissionStatusUnknown'
    kSentryPermissionStatusUnknown = 0,
    ^
❌ /Users/deniz/Library/Developer/Xcode/DerivedData/<proj>/Build/Products/Debug-iphonesimulator/Sentry.framework/Headers/SentryDefines.h:113:5: redefinition of enumerator 'kSentryPermissionStatusGranted'
    kSentryPermissionStatusGranted,
    ^
❌ /Users/deniz/Library/Developer/Xcode/DerivedData/<proj>/Build/Products/Debug-iphonesimulator/Sentry.framework/Headers/SentryDefines.h:114:5: redefinition of enumerator 'kSentryPermissionStatusPartial'
    kSentryPermissionStatusPartial,
    ^
❌ /Users/deniz/Library/Developer/Xcode/DerivedData/<proj>/Build/Products/Debug-iphonesimulator/Sentry.framework/Headers/SentryDefines.h:115:5: redefinition of enumerator 'kSentryPermissionStatusDenied'
    kSentryPermissionStatusDenied
    ^
❌ /Users/deniz/Library/Developer/Xcode/DerivedData/<proj>/Build/Products/Debug-iphonesimulator/Sentry.framework/Headers/SentryDefines.h:122:67: redefinition of 'SentryLevelNames'
    "Use nameForSentryLevel() instead.") NSString *_Nonnull const SentryLevelNames[]
                                                                  ^
❌ /Users/deniz/Library/Developer/Xcode/DerivedData/<proj>/Build/Products/Debug-iphonesimulator/Sentry.framework/Headers/SentryDefines.h:132:25: redefinition of 'defaultMaxBreadcrumbs'
static NSUInteger const defaultMaxBreadcrumbs = 100;
                        ^
❌ fatal error: too many errors emitted, stopping now [-ferror-limit=]
[Sentry] Compiling SentryTraceHeader.m
[Sentry] Compiling SentryTraceContext.m
[Sentry] Compiling SentryTime.mm
[Sentry] Compiling SentryThreadWrapper.m
[Sentry] Compiling SentryThreadMetadataCache.cpp
[Sentry] Compiling SentryThreadInspector.m
[Sentry] Compiling SentryThreadHandle.cpp
[Sentry] Compiling SentryThread.m
[Sentry] Compiling SentrySystemEventBreadcrumbs.m
[Sentry] Compiling SentrySysctl.m
[Sentry] Compiling SentrySwizzleWrapper.m
[Sentry] Compiling SentrySwizzle.m
[Sentry] Compiling SentrySubClassFinder.m
[Sentry] Compiling SentryStacktraceBuilder.m
The 'xcodebuild' command exited with error code 65
Consider creating an issue using the following link: https://github.com/tuist/tuist/issues/new/choose

@philipphofmann
Copy link
Member

@brustolin, do you know what could lead to the error above ⬆️?

@kyrillc
Copy link

kyrillc commented Dec 19, 2022

I'm observing the same issue as described by @denizdogan with a tuist-generated project.
This prevents me from updating to versions higher than v7.30.1.

@philipphofmann
Copy link
Member

We did some fixes for 8.0.0 that could fix your problem, @kyrillc. Could you let me know if your problem is fixed in the latest 8.0.0 beta? We plan to release 8.0.0 after the holidays. In case your issue is fixed, would that work for you, @kyrillc?

@kyrillc
Copy link

kyrillc commented Dec 23, 2022

Hi @philipphofmann and thanks for your answer.
I just tried with 8.0.0-beta.5 and it doesn't fix the issue.

@philipphofmann
Copy link
Member

@kyrillc, can you maybe give us a small sample project to reproduce the issue, please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants