Description
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
Metadata
Metadata
Assignees
Labels
No labels
Activity
roninopf commentedon Oct 22, 2020
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 commentedon Oct 22, 2020
Also experiencing this issue. Just tried v1.0.15 and the error persists.
xcode 12.0.1
build target - ios 12.0
bradherman commentedon Oct 22, 2020
Same happening here
bradherman commentedon Oct 22, 2020
Also updated my project and packages and now seeing this when pod installing:
roninopf commentedon Oct 23, 2020
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 commentedon Oct 23, 2020
I can confirm that 1.0.15 is also not working for me - the same error persists.
bradherman commentedon Oct 23, 2020
@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 commentedon Oct 27, 2020
@roninopf... any update on this? happy to help debug further if you need output from XCode or anything
camdengilliam commentedon Oct 27, 2020
+1
ghost commentedon Oct 28, 2020
+1
roninopf commentedon Oct 28, 2020
@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 commentedon Nov 2, 2020
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)
):with error printed to console of:
nicksnietka commentedon Nov 2, 2020
+1
alex-a-pereira commentedon Nov 3, 2020
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 commentedon Nov 4, 2020
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