AppsFlyerSDK / AppsFlyerFramework

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

[Xcode 12.2] App can't be built on simulator #144

Closed oleksandrivantsov closed 3 years ago

oleksandrivantsov commented 3 years ago

Report

SDK Version

Via '6.1.1'

What did you do?

Build app on simulator

What did you expect to happen?

Project is successfully built

What happened instead?

Got fail: in .../Pods/AppsFlyerFramework/iOS/AppsFlyerLib.framework/AppsFlyerLib(AFSDKKeychainFactory.o), building for iOS Simulator, but linking in object file built for iOS, file '.../Pods/AppsFlyerFramework/iOS/AppsFlyerLib.framework/AppsFlyerLib' for architecture arm64

Please provide any other relevant information.

App is built successfully if I build it on real device

rherubin commented 3 years ago

followed this and got everything to work:

https://stackoverflow.com/a/63955114

oleksandrivantsov commented 3 years ago

I got another one instead:

PhaseScriptExecution [CP]\ Embed\ Pods\ Frameworks /.../Xcode/DerivedData/SpellingFun-bmosxuadyluazycxwrxsmaaokahh/Build/Intermediates.noindex/SpellingFun.build/Debug-iphonesimulator/SpellingFun.build/Script-F7439AA1C907126CBDA2158D.sh (in target 'SpellingFun' from project 'SpellingFun')
    cd /.../spellingfun-ios
    /bin/sh -c /.../Xcode/DerivedData/SpellingFun-bmosxuadyluazycxwrxsmaaokahh/Build/Intermediates.noindex/SpellingFun.build/Debug-iphonesimulator/SpellingFun.build/Script-F7439AA1C907126CBDA2158D.sh

mkdir -p /.../Xcode/DerivedData/SpellingFun-bmosxuadyluazycxwrxsmaaokahh/Build/Products/Debug-iphonesimulator/SpellingFun.app/Frameworks
rsync --delete -av --filter P .*.?????? --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "/.../Xcode/DerivedData/SpellingFun-bmosxuadyluazycxwrxsmaaokahh/Build/Products/Debug-iphonesimulator/AWSCore/AWSCore.framework" "/.../Xcode/DerivedData/SpellingFun-bmosxuadyluazycxwrxsmaaokahh/Build/Products/Debug-iphonesimulator/SpellingFun.app/Frameworks"
building file list ... done

sent 200 bytes  received 20 bytes  440.00 bytes/sec
total size is 2450798  speedup is 11139.99
/.../spellingfun-ios/Pods/Target Support Files/Pods-SpellingFun/Pods-SpellingFun-frameworks.sh: line 141: ARCHS[@]: unbound variable
Command PhaseScriptExecution failed with a nonzero exit code

Edited: I fixed problem, it was not because of this pod, it was because of project was configured with VALID_ARCH (arm64, arm64e). I just deleted VALID_ARCH and now I can build on simulator