braze-inc / braze-swift-sdk

Braze SDK for the Apple ecosystem, including: iOS, macOS, iPadOS, visionOS, tvOS
https://www.braze.com
Other
52 stars 19 forks source link

[Bug]: Linker failure when using Xcode 15.0 + BrazeKit 8.2.1 #115

Closed andre-alves closed 8 months ago

andre-alves commented 8 months ago

Platform

iOS

Platform Version

iOS 17

Braze SDK Version

8.2.1

Xcode Version

Xcode 15.0

Computer Processor

Apple (M1)

Repro Rate

100% of the time

Steps To Reproduce

Here is the repro: TestBraze.zip

Expected Behavior

Expected to build the app.

Actual Incorrect Behavior

image

Verbose Logs

ld: Undefined symbols:
  static ActivityKit.Activity.pushToStartTokenUpdates.getter : ActivityKit.Activity<A>.PushTokenUpdates, referenced from:
      (1) suspend resume partial function for closure #2 @Sendable () async -> () in BrazeKit.Braze.LiveActivities.registerPushToStart<A where A: ActivityKit.ActivityAttributes, A: BrazeKit.BrazeLiveActivityAttributes>(forType: ActivityKit.Activity<A>.Type, name: Swift.String) -> Swift.Task<(), Swift.Never> in BrazeKit[arm64][2](BrazeKit-arm64-master.o)
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Additional Information

No response

hokstuff commented 8 months ago

Hi @andre-alves,

This error is actually expected, since as of version 8.0.0 we compile our SDK using Xcode 15.2. In order to use an updated version of the SDK, you would need to update to Xcode 15.2+. If you need to use Xcode 15.0, feel free to use a version of our SDK prior to 8.0.0.

Thanks!