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]: Build failed #133

Closed sergey-shablenko closed 5 months ago

sergey-shablenko commented 5 months ago

Platform

iOS

Platform Version

IOS 14

Braze SDK Version

9.0.0

Xcode Version

15.01

Computer Processor

Apple (M1)

Repro Rate

100%

Steps To Reproduce

podfile has following

platform :ios, '14'

use_frameworks! :linkage => :static

pod 'BrazeKit' pod 'BrazeUI'

Expected Behavior

App builds

Actual Incorrect Behavior

App does not build in github macos-14-xlarge runner

Undefined symbols for architecture arm64: Error: "_$s11ActivityKit0A0C23pushToStartTokenUpdatesAC04PushfG0VyxGvgZ", referenced from: Warning: $s8BrazeKit0A0C14LiveActivitiesC19registerPushToStart7forType4nameScTyyts5NeverOG08ActivityB00M0CyxGm_SStAL0M10AttributesRzAA0acmN0RzlFyyYaYbcfU0TY0 in BrazeKit(BrazeKit-arm64-master.o) Error: ld: symbol(s) not found for architecture arm64 Error: clang: error: linker command failed with exit code 1 (use -v to see invocation)

Verbose Logs

No response

Additional Information

Build from my laptop works just fine, which is confusing as Im running build on M2 Macos 14.5 xcode 15.4 which is not that different from github runner

cleberada commented 3 months ago

@sergey-shablenko Did you solve it?

jerielng commented 3 months ago

@cleberada If you are facing similar build issues, please send in your project and configuration details (i.e. Xcode versions, OS versions, which version of the Braze SDK you are using, etc.) to support@braze.com with any relevant build logs that reproduce this scenario so that our support team can assist you. Thanks!

cleberada commented 3 months ago

@jerielng Thank you. I've already sent the email to support, and I'm waiting for a response. But we can also include the resolution in this thread to help other people in the future.