Skip to content

Commit 26b4f2d

Browse files
committed
Expand error example for missing required architecture
I was searching on the linker error and failed to get any hits. Best to include the complete error, so search on any part of it is more likely to get you the right result.
1 parent edcbf8c commit 26b4f2d

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

FAQ.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -456,12 +456,18 @@ If you see a message similar to:
456456
ld: warning: ignoring file /PATH/j2objcOutputs/lib/iosDebug/libPROJECT-j2objc.a,
457457
missing required architecture i386 in file /PATH/j2objcOutputs/lib/iosDebug/libPROJECT-j2objc.a
458458
(3 slices)
459+
460+
461+
Undefined symbols for architecture i386:
462+
"_OBJC_CLASS_$_ComExampleShared", referenced from:
463+
type metadata accessor for ObjectiveC.ComExampleShared in ViewController.o
464+
ld: symbol(s) not found for architecture i386
459465
```
460-
and additionally get linker errors, you are not building all the neccessary architectures.
466+
You are not building all the neccessary architectures.
461467

462-
By default (for performance), we build only modern iOS device and simulator architectures.
463-
If you need i386 for older simulators (iPhone 5, 5c and earlier devices), add the following
464-
to your build.gradle file:
468+
By default (for performance), we build only modern iOS device and simulator
469+
architectures. If you need i386 for older simulators (iPhone 5, 5c and earlier
470+
devices), add the following to your build.gradle file:
465471

466472
```gradle
467473
// File: build.gradle

0 commit comments

Comments
 (0)