Skip to content

[WatchOS] Duplicate symbols for architecture armv7k arm64_32 arm64 #190

@canhth

Description

@canhth

Thank you for helping us in #187
But it seems the issue still remains.

My integration setup
[ x ] CocoaPods cocoapods-xcremotecache plugin 0.1.15

Description

  • My project is getting an issue with the step Link Watch App. Not sure why it needs to do the Link step 3 times. (armv7k, arm64_32, arm64)
  • I can't reproduce this issue with example project, not sure which path that I did wrong.
[15:30:42]: fastlane finished with errors
[!] Error building the application - see the log above
**Uncategorized** Command CompileSwiftSources failed with a nonzero exit code
**Error** 55392 duplicate symbols for architecture armv7k
**Error** 55392 duplicate symbols for architecture arm64_32
**Error** 55414 duplicate symbols for architecture arm64
  • Here is the error log when compiling:
❌  duplicate symbol '_$s9SwiftyRSA18_objc_ClearMessageCfD' in
> SwiftyRSA(SwiftyRSA+ObjC.o)
> SwiftyRSA(SwiftyRSA+ObjC.o)

❌  duplicate symbol '_$s9SwiftyRSA16_objc_PrivateKeyCACycfC' in
> SwiftyRSA(SwiftyRSA+ObjC.o)
> SwiftyRSA(SwiftyRSA+ObjC.o)

❌  duplicate symbol '_$s9SwiftyRSA24_objc_VerificationResultCACycfC' in
> SwiftyRSA(SwiftyRSA+ObjC.o)
> SwiftyRSA(SwiftyRSA+ObjC.o)

❌  duplicate symbol '_$s9SwiftyRSA18_objc_ClearMessageCACycfC' in
> SwiftyRSA(SwiftyRSA+ObjC.o)
> SwiftyRSA(SwiftyRSA+ObjC.o)

Others

  • For Debug build, I can fix it by adding config.build_settings['EXCLUDED_ARCHS[sdk=watchsimulator*]'] = 'arm64' in Podfile and Excluded Architectures for Watch target.
  • But Release/Staging configuration still error.
  • Added the Watch target into exclude_targets, but it didn't work even though [XCRC] steps are removed from the target. 😢

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions