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

[Bug]: Appboy ios SDK 4.4.4 archive failed #345

Closed
Yuehuan-Lu opened this issue Jul 7, 2022 · 4 comments
Closed

[Bug]: Appboy ios SDK 4.4.4 archive failed #345

Yuehuan-Lu opened this issue Jul 7, 2022 · 4 comments
Labels

Comments

@Yuehuan-Lu
Copy link

Platform

iOS

Platform Version

iOS 15.2

Braze SDK Version

4.4.4

Xcode Version

Xcode 13.2.1

Integration Method

Cocoapods

Computer Processor

Intel

Repro Rate

100%

Steps To Reproduce

Example:

  1. Add pod 'Appboy-iOS-SDK ~> 4.4.4' to the Podspec file.
  2. Add [Appboy startWithApiKey:inApplication:withLaunchOptions:]; method in application:didFinishLaunchingWithOptions: method in AppDelegate.m.
    3.Archive the app and upload to Testflight.

Expected Behavior

Archive successfully

Actual Incorrect Behavior

Archive failed

Verbose Logs

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -target arm64-apple-ios9.0 -fmessage-length\=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -std\=gnu11 -fobjc-arc -fobjc-weak -fmodules -gmodules -fmodules-cache-path\=/Users/ec2-user/actions-runner/_work/streamotion-mobile-ios-kayo/streamotion-mobile-ios-kayo/.build/DerivedData/ModuleCache.noindex -fmodules-prune-interval\=86400 -fmodules-prune-after\=345600 -fbuild-session-file\=/Users/ec2-user/actions-runner/_work/streamotion-mobile-ios-kayo/streamotion-mobile-ios-kayo/.build/DerivedData/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror\=non-modular-include-in-framework-module -fmodule-name\=Appboy_iOS_SDK -Wno-trigraphs -fpascal-strings -Os -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes -Werror\=return-type -Wdocumentation -Wunreachable-code -Wno-implicit-atomic-properties -Werror\=deprecated-objc-isa-usage -Wno-objc-interface-ivars -Werror\=objc-root-class -Wno-arc-repeated-use-of-weak -Wimplicit-retain-self -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -w -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wnon-literal-null-conversion -Wobjc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wdeprecated-implementations -DPOD_CONFIGURATION_RELEASE\=1 -DCOCOAPODS\=1 -DNS_BLOCK_ASSERTIONS\=1 -DOBJC_OLD_DISPATCH_PROTOTYPES\=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -Wno-sign-conversion -Winfinite-recursion -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wno-semicolon-before-method-body -Wunguarded-availability -fembed-bitcode -iquote /Users/ec2-user/actions-runner/_work/streamotion-mobile-ios-kayo/streamotion-mobile-ios-kayo/.build/DerivedData/Build/Intermediates.noindex/ArchiveIntermediates/Martian_iOS\ Prod/IntermediateBuildFilesPath/Appboy-iOS-SDK.build/Release-iphoneos/Appboy-iOS-SDK.build/Appboy_iOS_SDK-generated-files.hmap -I/Users/ec2-user/actions-runner/_work/streamotion-mobile-ios-kayo/streamotion-mobile-ios-kayo/.build/DerivedData/Build/Intermediates.noindex/ArchiveIntermediates/Martian_iOS\ Prod/IntermediateBuildFilesPath/Appboy-iOS-SDK.build/Release-iphoneos/Appboy-iOS-SDK.build/Appboy_iOS_SDK-own-target-headers.hmap -I/Users/ec2-user/actions-runner/_work/streamotion-mobile-ios-kayo/streamotion-mobile-ios-kayo/.build/DerivedData/Build/Intermediates.noindex/ArchiveIntermediates/Martian_iOS\ Prod/IntermediateBuildFilesPath/Appboy-iOS-SDK.build/Release-iphoneos/Appboy-iOS-SDK.build/Appboy_iOS_SDK-all-non-framework-target-headers.hmap -ivfsoverlay /Users/ec2-user/actions-runner/_work/streamotion-mobile-ios-kayo/streamotion-mobile-ios-kayo/.build/DerivedData/Build/Intermediates.noindex/ArchiveIntermediates/Martian_iOS\ Prod/IntermediateBuildFilesPath/Appboy-iOS-SDK.build/Release-iphoneos/Appboy-iOS-SDK.build/all-product-headers.yaml -iquote /Users/ec2-user/actions-runner/_work/streamotion-mobile-ios-kayo/streamotion-mobile-ios-kayo/.build/DerivedData/Build/Intermediates.noindex/ArchiveIntermediates/Martian_iOS\ Prod/IntermediateBuildFilesPath/Appboy-iOS-SDK.build/Release-iphoneos/Appboy-iOS-SDK.build/Appboy_iOS_SDK-project-headers.hmap -I/Users/ec2-user/actions-runner/_work/streamotion-mobile-ios-kayo/streamotion-mobile-ios-kayo/.build/D** ARCHIVE FAILED **

Additional Information

No response

@Yuehuan-Lu Yuehuan-Lu added the bug label Jul 7, 2022
@lowip
Copy link
Member

lowip commented Jul 7, 2022

Hi @Yuehuan-Lu,

Thank you for reporting this issue. The 4.4.4 release of the SDK was generated using Xcode 13.4.1. In order to successfully archive your app, you can either:

  • Update Xcode to 13.4.1
  • Disable Bitcode by setting the Enable Bitcode build setting to No
Disable Bitcode CleanShot 2022-07-07 at 13 45 00@2x

Please let us know if that resolves your issue.

@Yuehuan-Lu
Copy link
Author

Should I disable Bitcode in this target?
image (2)

@lowip
Copy link
Member

lowip commented Jul 8, 2022

Hi @Yuehuan-Lu,

Yes you should disable it in your app and also any extension embedded in your app (even if they don't make use of an Appboy / Braze framework).

@hokstuff
Copy link
Collaborator

I'm closing out this issue due to inactivity. If you have further concerns, please file a new issue. Thanks!

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

No branches or pull requests

3 participants