AppsFlyerSDK / AppsFlyerFramework

AppsFlyer Apple SDK
https://support.appsflyer.com/hc/en-us/articles/207032066-AppsFlyer-SDK-Integration-iOS
Other
166 stars 89 forks source link

Compile errors from AppsFlyerLib #96

Closed flashup closed 4 years ago

flashup commented 4 years ago

Hello. I use this haxe library for AppsFlyerFramework: https://github.com/charmdev/AppsFlyerExtension-OpenFl It uses your Framework as external library. Lib locates here in repo: dependencies/ios/AppsFlyerLib.framework/ When I compile my project I get following errors:

Undefined symbols for architecture arm64:
  "_SecRandomCopyBytes", referenced from:
      +[AppsFlyerAES128Crypto randomDataOfLength:] in AppsFlyerLib(AppsFlyerAES128Crypto.o)
     (maybe you meant: _fbsdkdfl_SecRandomCopyBytes
)
  "_SecItemUpdate", referenced from:
      -[AppsFlyerKeychainWrapper update::] in AppsFlyerLib(AppsFlyerKeychainWrapper.o)
     (maybe you meant: _fbsdkdfl_SecItemUpdate
)
  "_kSecAttrGeneric", referenced from:
      -[AppsFlyerKeychainWrapper prepareForKeychain:] in AppsFlyerLib(AppsFlyerKeychainWrapper.o)
  "_kSecAttrAccessible", referenced from:
      -[AppsFlyerKeychainWrapper prepareForKeychain:] in AppsFlyerLib(AppsFlyerKeychainWrapper.o)
  "_kSecRandomDefault", referenced from:
      +[AppsFlyerAES128Crypto randomDataOfLength:] in AppsFlyerLib(AppsFlyerAES128Crypto.o)
  "_kSecAttrAccount", referenced from:
      -[AppsFlyerKeychainWrapper prepareForKeychain:] in AppsFlyerLib(AppsFlyerKeychainWrapper.o)
  "_kSecMatchLimitOne", referenced from:
      -[AppsFlyerKeychainWrapper getObject:] in AppsFlyerLib(AppsFlyerKeychainWrapper.o)
  "_kSecMatchLimit", referenced from:
      -[AppsFlyerKeychainWrapper getObject:] in AppsFlyerLib(AppsFlyerKeychainWrapper.o)
  "_kSecReturnData", referenced from:
      -[AppsFlyerKeychainWrapper getObject:] in AppsFlyerLib(AppsFlyerKeychainWrapper.o)
  "_CFNetworkCopySystemProxySettings", referenced from:
      +[AppsFlyerUtils isVPNConnected] in AppsFlyerLib(AppsFlyerUtils.o)
  "_kSecClassGenericPassword", referenced from:
      -[AppsFlyerKeychainWrapper prepareForKeychain:] in AppsFlyerLib(AppsFlyerKeychainWrapper.o)
  "_kSecAttrService", referenced from:
      -[AppsFlyerKeychainWrapper getObject:] in AppsFlyerLib(AppsFlyerKeychainWrapper.o)
      -[AppsFlyerKeychainWrapper prepareForKeychain:] in AppsFlyerLib(AppsFlyerKeychainWrapper.o)
  "_kSecAttrAccessibleAlwaysThisDeviceOnly", referenced from:
      -[AppsFlyerKeychainWrapper prepareForKeychain:] in AppsFlyerLib(AppsFlyerKeychainWrapper.o)
  "_kSecClass", referenced from:
      -[AppsFlyerKeychainWrapper prepareForKeychain:] in AppsFlyerLib(AppsFlyerKeychainWrapper.o)
  "_SecItemCopyMatching", referenced from:
      -[AppsFlyerKeychainWrapper getObject:] in AppsFlyerLib(AppsFlyerKeychainWrapper.o)
     (maybe you meant: _fbsdkdfl_SecItemCopyMatching
)
  "_kSecValueData", referenced from:
      -[AppsFlyerKeychainWrapper setObject:withData:] in AppsFlyerLib(AppsFlyerKeychainWrapper.o)
      -[AppsFlyerKeychainWrapper update::] in AppsFlyerLib(AppsFlyerKeychainWrapper.o)
  "_SecItemDelete", referenced from:
      -[AppsFlyerKeychainWrapper remove:] in AppsFlyerLib(AppsFlyerKeychainWrapper.o)
     (maybe you meant: _fbsdkdfl_SecItemDelete
)
  "_SecItemAdd", referenced from:
      -[AppsFlyerKeychainWrapper setObject:withData:] in AppsFlyerLib(AppsFlyerKeychainWrapper.o)
     (maybe you meant: _fbsdkdfl_SecItemAdd
)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

The problems are somewhere inside binary file AppsFlyerLib. I tried to update AppsFlyerLib.framework to the last version 4.10.0, but the errors appeared again.

Thanks for any help.

andr-ggn commented 4 years ago

Try to include Security.framework

flashup commented 4 years ago

Thank you! I added Security.framework and CFNetwork.framework to dependencies and it helped.