Skip to content

Unable to archive on XCode 12 #86

Closed
Tealium/tealium-react-native
#84
@camdengilliam

Description

@camdengilliam

When trying to archive a RN iOS build with the Iterable RN SDK as a dependency in XCode 12, the archive process fails:

Undefined symbols for architecture arm64:
 "Swift._ArrayBuffer._copyContents(initializing: Swift.UnsafeMutableBufferPointer<A>) -> (Swift.IndexingIterator<Swift._ArrayBuffer<A>>, Swift.Int)", referenced from:
   generic specialization <Swift._ArrayBuffer<IterableSDK.InboxMessageViewModel>> of Swift._copyCollectionToContiguousArray<A where A: Swift.Collection>(A) -> Swift.ContiguousArray<A.Element> in libIterable-iOS-SDK.a(InboxViewControllerViewModel.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Note, we are able to run the app in Debug mode.

Environment:

xcode - 12.0.1
build target - iOS 11

Activity

roninopf

roninopf commented on Oct 22, 2020

@roninopf
Contributor

Hi @camdengilliam, we just released 1.0.15; can you try that and see if it fixes this? We saw this same error on the native side and fixed it there; it's now been updated in 1.0.15 which points to our latest iOS SDK release (2 days ago as of writing).

ghost

ghost commented on Oct 22, 2020

@ghost

Also experiencing this issue. Just tried v1.0.15 and the error persists.

xcode 12.0.1
build target - ios 12.0

bradherman

bradherman commented on Oct 22, 2020

@bradherman

Same happening here

bradherman

bradherman commented on Oct 22, 2020

@bradherman

Also updated my project and packages and now seeing this when pod installing:

[!] CocoaPods could not find compatible versions for pod "Iterable-iOS-SDK":
  In Podfile:
    Iterable-React-Native-SDK (from `../node_modules/@iterable/react-native-sdk`) was resolved to 1.0.15, which depends on
      Iterable-iOS-SDK (~> 6.2.13)

    Iterable-iOS-SDK

Specs satisfying the `Iterable-iOS-SDK, Iterable-iOS-SDK (~> 6.2.13)` dependency were found, but they required a higher minimum deployment target.
roninopf

roninopf commented on Oct 23, 2020

@roninopf
Contributor

Thanks for the feedback, clearly more investigation/fixing is required.

@bradherman can you open a new issue with that error? It looks like a separate error since dependencies should be the same as they have been for a long time.

camdengilliam

camdengilliam commented on Oct 23, 2020

@camdengilliam
Author

Hi @camdengilliam, we just released 1.0.15; can you try that and see if it fixes this? We saw this same error on the native side and fixed it there; it's now been updated in 1.0.15 which points to our latest iOS SDK release (2 days ago as of writing).

I can confirm that 1.0.15 is also not working for me - the same error persists.

bradherman

bradherman commented on Oct 23, 2020

@bradherman

@roninopf... I deleted my node_modules folder, derived data folder, updated all packages in package.json, deintegrated pods, and then reinstalled them and that error cleared up. Still unable to compile/archive for release though. Builds for test devices, but archive fails with the same error others are seeing.

bradherman

bradherman commented on Oct 27, 2020

@bradherman

@roninopf... any update on this? happy to help debug further if you need output from XCode or anything

camdengilliam

camdengilliam commented on Oct 27, 2020

@camdengilliam
Author

@roninopf... any update on this? happy to help debug further if you need output from XCode or anything

+1

ghost

ghost commented on Oct 28, 2020

@ghost

@roninopf... any update on this? happy to help debug further if you need output from XCode or anything

+1

+1

roninopf

roninopf commented on Oct 28, 2020

@roninopf
Contributor

@roninopf... any update on this? happy to help debug further if you need output from XCode or anything

@bradherman Thanks for the note; yes it's something we're working on right now. And yes, please do pass along Xcode output!

EDIT: As well as anyone else; the more debug reports, the better!

Apologies for the delay on the fix. We know this is an important fix.

alex-a-pereira

alex-a-pereira commented on Nov 2, 2020

@alex-a-pereira
Contributor

Thanks for being on top of this guys. I'm also seeing the same error message that OP posted - tried to remove node_modules, clear all caches, pod deintegrate, and re-install node modules/pods. like OP I'm able to make a debug build on my iphone with no problem, but trying to archive fails for the same reason.

I'm using xcode 12.1 and OSX 10.15.7 if that's helpful at all. Let me know if there's any more info you'd need!

Here's the command that it failed on (the step is Link MY_PROJECT (arm64)):

Ld /Users/MY_USER/Library/Developer/Xcode/DerivedData/MY_PROJECT_NAME-gatdiupzcbeitrcrvuukggznzjse/Build/Intermediates.noindex/ArchiveIntermediates/MY_PROJECT_NAME/IntermediateBuildFilesPath/MY_PROJECT_NAME.build/Release-iphoneos/MY_PROJECT_NAME.build/Objects-normal/arm64/Binary/MY_PROJECT_NAME normal arm64 (in target 'MY_PROJECT_NAME' from project 'MY_PROJECT_NAME')

with error printed to console of:

Showing Recent Messages
Undefined symbol: Swift._ArrayBuffer._copyContents(initializing: Swift.UnsafeMutableBufferPointer<A>) -> (Swift.IndexingIterator<Swift._ArrayBuffer<A>>, Swift.Int)
nicksnietka

nicksnietka commented on Nov 2, 2020

@nicksnietka

+1

alex-a-pereira

alex-a-pereira commented on Nov 3, 2020

@alex-a-pereira
Contributor

Additionally I've attempted to downgrade xcode to 11.7, and roll back iterable SDK to 1.0.12. Unfortunately I'm getting the same compile error as described above ^^

Should note that we haven't had a successful archive yet - we've just started attempting last week. So I can't confirm if xcode 12 or iterable-rn-sdk 1.0.12 or 1.0.15 is what's causing the issue

roninopf

roninopf commented on Nov 4, 2020

@roninopf
Contributor

Hi all, thanks for your extreme patience; to give an update, we've identified that the issue is in the configuration of the iOS SDK not being a static library. We're continuing to work on this (of course), and we'll post about it when we have more updates or a new release.

Thank you again for your patience and constructive replies!

25 remaining items

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Participants

      @blackbing@bradherman@roninopf@nicksnietka@robotnoises

      Issue actions

        Unable to archive on XCode 12 · Issue #86 · Iterable/react-native-sdk