Skip to content

[1.4.1][iOS] 331 duplicate symbols #19

Description

@emorb

Hi,
when I try to build my React Native 0.86.0 app on iOS using react-native-mapp-plugin I have this error about duplicate classes.

I made some investigations and very likely this is caused by nested framework classes.
Your podspec file includes both "AppoxeeSDK.xcframework" and "AppoxeeInapp.xcframework".
Checking inner classes it seems that AppoxeeInapp already includes AppoxeeSDK causing duplicate classes error.

Moreover, correct prop in podspec should be vendored_frameworks and not vendored_framework

I tried to remove AppoxeeSDK.xcframework leaving just AppoxeeInapp.xcframework and build is successful, btw I don't know if it may lead to unexpected behaviors

NOTE: Also on iOS I see "engage failed Error: Exception in HostFunction: Must call engage() first!!!" already described in this other isue I opened:
#18

Can you help me?
Thanks

This is the error stack you can see building in XCode (i truncated it but they are 331):

duplicate symbol '_SUUIDTimeStampKey' in:
    /Users/enrico.morbidelli/Developer/hitachi-app-2/ios/build/Products/DebugDev-iphonesimulator/XCFrameworkIntermediates/RNMappPlugin/libAppoxeeSDK.a[x86_64][43](APXIdentifier.o)
    /Users/enrico.morbidelli/Developer/hitachi-app-2/ios/build/Products/DebugDev-iphonesimulator/XCFrameworkIntermediates/RNMappPlugin/libAppoxeeInapp.a[x86_64][82](APXIdentifier.o)
duplicate symbol '_SUUIDModelHash' in:
    /Users/enrico.morbidelli/Developer/hitachi-app-2/ios/build/Products/DebugDev-iphonesimulator/XCFrameworkIntermediates/RNMappPlugin/libAppoxeeSDK.a[x86_64][43](APXIdentifier.o)
    /Users/enrico.morbidelli/Developer/hitachi-app-2/ios/build/Products/DebugDev-iphonesimulator/XCFrameworkIntermediates/RNMappPlugin/libAppoxeeInapp.a[x86_64][82](APXIdentifier.o)
duplicate symbol '_OBJC_IVAR_$_APXApplicationConfiguration._feedback' in:
    /Users/enrico.morbidelli/Developer/hitachi-app-2/ios/build/Products/DebugDev-iphonesimulator/XCFrameworkIntermediates/RNMappPlugin/libAppoxeeSDK.a[x86_64][44](APXApplicationConfiguration.o)
    /Users/enrico.morbidelli/Developer/hitachi-app-2/ios/build/Products/DebugDev-iphonesimulator/XCFrameworkIntermediates/RNMappPlugin/libAppoxeeInapp.a[x86_64][83](APXApplicationConfiguration.o)
duplicate symbol '_OBJC_IVAR_$_APXUserNotificationService._postponeRegistration' in:
    /Users/enrico.morbidelli/Developer/hitachi-app-2/ios/build/Products/DebugDev-iphonesimulator/XCFrameworkIntermediates/RNMappPlugin/libAppoxeeSDK.a[x86_64][19](APXUserNotificationService.o)
    /Users/enrico.morbidelli/Developer/hitachi-app-2/ios/build/Products/DebugDev-iphonesimulator/XCFrameworkIntermediates/RNMappPlugin/libAppoxeeInapp.a[x86_64][58](APXUserNotificationService.o)
duplicate symbol '_OBJC_IVAR_$_APXTag._name' in:
    /Users/enrico.morbidelli/Developer/hitachi-app-2/ios/build/Products/DebugDev-iphonesimulator/XCFrameworkIntermediates/RNMappPlugin/libAppoxeeSDK.a[x86_64][37](APXTag.o)
    /Users/enrico.morbidelli/Developer/hitachi-app-2/ios/build/Products/DebugDev-iphonesimulator/XCFrameworkIntermediates/RNMappPlugin/libAppoxeeInapp.a[x86_64][76](APXTag.o)
duplicate symbol '_OBJC_IVAR_$_APXClientDevice._inboxEnabled' in:
    /Users/enrico.morbidelli/Developer/hitachi-app-2/ios/build/Products/DebugDev-iphonesimulator/XCFrameworkIntermediates/RNMappPlugin/libAppoxeeSDK.a[x86_64][30](APXClientDevice.o)
    /Users/enrico.morbidelli/Developer/hitachi-app-2/ios/build/Products/DebugDev-iphonesimulator/XCFrameworkIntermediates/RNMappPlugin/libAppoxeeInapp.a[x86_64][69](APXClientDevice.o)
duplicate symbol '_OBJC_IVAR_$_APXPushNotification._title' in:
    /Users/enrico.morbidelli/Developer/hitachi-app-2/ios/build/Products/DebugDev-iphonesimulator/XCFrameworkIntermediates/RNMappPlugin/libAppoxeeSDK.a[x86_64][48](APXPushNotification.o)
    /Users/enrico.morbidelli/Developer/hitachi-app-2/ios/build/Products/DebugDev-iphonesimulator/XCFrameworkIntermediates/RNMappPlugin/libAppoxeeInapp.a[x86_64][87](APXPushNotification.o)
duplicate symbol '_OBJC_IVAR_$_Appoxee._logLevel' in:
    /Users/enrico.morbidelli/Developer/hitachi-app-2/ios/build/Products/DebugDev-iphonesimulator/XCFrameworkIntermediates/RNMappPlugin/libAppoxeeSDK.a[x86_64][18](Appoxee.o)
    /Users/enrico.morbidelli/Developer/hitachi-app-2/ios/build/Products/DebugDev-iphonesimulator/XCFrameworkIntermediates/RNMappPlugin/libAppoxeeInapp.a[x86_64][57](Appoxee.o)
duplicate symbol '_OBJC_CLASS_$_APXRichMessage' in:
    /Users/enrico.morbidelli/Developer/hitachi-app-2/ios/build/Products/DebugDev-iphonesimulator/XCFrameworkIntermediates/RNMappPlugin/libAppoxeeSDK.a[x86_64][12](APXRichMessage.o)
    /Users/enrico.morbidelli/Developer/hitachi-app-2/ios/build/Products/DebugDev-iphonesimulator/XCFrameworkIntermediates/RNMappPlugin/libAppoxeeInapp.a[x86_64][51](APXRichMessage.o)
duplicate symbol '_OBJC_CLASS_$_APXOSEventManager' in:
    /Users/enrico.morbidelli/Developer/hitachi-app-2/ios/build/Products/DebugDev-iphonesimulator/XCFrameworkIntermediates/RNMappPlugin/libAppoxeeSDK.a[x86_64][24](APXOSEventManager.o)
    /Users/enrico.morbidelli/Developer/hitachi-app-2/ios/build/Products/DebugDev-iphonesimulator/XCFrameworkIntermediates/RNMappPlugin/libAppoxeeInapp.a[x86_64][63](APXOSEventManager.o)
duplicate symbol '_OBJC_IVAR_$_APXPushNotificationActionButtonAction._value' in:
    /Users/enrico.morbidelli/Developer/hitachi-app-2/ios/build/Products/DebugDev-iphonesimulator/XCFrameworkIntermediates/RNMappPlugin/libAppoxeeSDK.a[x86_64][13](APXPushNotificationActionButtonAction.o)
    /Users/enrico.morbidelli/Developer/hitachi-app-2/ios/build/Products/DebugDev-iphonesimulator/XCFrameworkIntermediates/RNMappPlugin/libAppoxeeInapp.a[x86_64][52](APXPushNotificationActionButtonAction.o)
duplicate symbol '_SUUIDCryptorToData' in:
    /Users/enrico.morbidelli/Developer/hitachi-app-2/ios/build/Products/DebugDev-iphonesimulator/XCFrameworkIntermediates/RNMappPlugin/libAppoxeeSDK.a[x86_64][43](APXIdentifier.o)
    /Users/enrico.morbidelli/Developer/hitachi-app-2/ios/build/Products/DebugDev-iphonesimulator/XCFrameworkIntermediates/RNMappPlugin/libAppoxeeInapp.a[x86_64][82](APXIdentifier.o)
duplicate symbol '_OBJC_CLASS_$_FileManagement' in:
    /Users/enrico.morbidelli/Developer/hitachi-app-2/ios/build/Products/DebugDev-iphonesimulator/XCFrameworkIntermediates/RNMappPlugin/libAppoxeeSDK.a[x86_64][11](FileManagement.o)
    /Users/enrico.morbidelli/Developer/hitachi-app-2/ios/build/Products/DebugDev-iphonesimulator/XCFrameworkIntermediates/RNMappPlugin/libAppoxeeInapp.a[x86_64][50](FileManagement.o)
duplicate symbol '_OBJC_IVAR_$_APXCustomField._key' in:
    /Users/enrico.morbidelli/Developer/hitachi-app-2/ios/build/Products/DebugDev-iphonesimulator/XCFrameworkIntermediates/RNMappPlugin/libAppoxeeSDK.a[x86_64][34](APXCustomField.o)
    /Users/enrico.morbidelli/Developer/hitachi-app-2/ios/build/Products/DebugDev-iphonesimulator/XCFrameworkIntermediates/RNMappPlugin/libAppoxeeInapp.a[x86_64][73](APXCustomField.o)
duplicate symbol '_OBJC_METACLASS_$_APXUIFlowObserver' in:
    /Users/enrico.morbidelli/Developer/hitachi-app-2/ios/build/Products/DebugDev-iphonesimulator/XCFrameworkIntermediates/RNMappPlugin/libAppoxeeSDK.a[x86_64][23](APXUIFlowObserver.o)
    /Users/enrico.morbidelli/Developer/hitachi-app-2/ios/build/Products/DebugDev-iphonesimulator/XCFrameworkIntermediates/RNMappPlugin/libAppoxeeInapp.a[x86_64][62](APXUIFlowObserver.o)
duplicate symbol '_OBJC_CLASS_$_APXAutoIntegrateService' in:
    /Users/enrico.morbidelli/Developer/hitachi-app-2/ios/build/Products/DebugDev-iphonesimulator/XCFrameworkIntermediates/RNMappPlugin/libAppoxeeSDK.a[x86_64][29](APXAutoIntegrateService.o)
    /Users/enrico.morbidelli/Developer/hitachi-app-2/ios/build/Products/DebugDev-iphonesimulator/XCFrameworkIntermediates/RNMappPlugin/libAppoxeeInapp//...

Activity

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

      Development

      No branches or pull requests

      Issue actions