Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't build Giphy included project for iOS, only for iOS simulator #186

Closed
carlsondev opened this issue Dec 5, 2021 · 8 comments
Closed

Comments

@carlsondev
Copy link

carlsondev commented Dec 5, 2021

I recently installed Giphy via Cocoapods and I have not been able to run the project now on any device other than a simulator.

The primary issue appears to be this:
"ld: building for iOS, but linking in dylib file (/Build/Products/Debug-iphoneos/GiphyUISDK.framework/GiphyUISDK) built for iOS Simulator, file '/Build/Products/Debug-iphoneos/GiphyUISDK.framework/GiphyUISDK' for architecture arm64" (* is just the removed path to derived data)

I don't think this can be recompiled and it appears to be because Giphy is downloaded as a framework versus a full-on Cocoapod. This is rather frustrating. Please fix ASAP. I can't appear to find anything online that helps since it is usually the other way around, where people can't run on the simulator but can run on a device.

Here is another error message:
"error: unable to load standard library for target 'arm64-apple-ios10.0-simulator'"

My theory is that somehow the Giphy framework was compiled for the iOS 10 simulator and now it just won't work. I have made sure that my target version is set throughout to iOS 14 with no luck.

Since I need this solved ASAP and I am assuming @cgmaier is an admin, I am tagging him here

@cgmaier
Copy link
Contributor

cgmaier commented Dec 6, 2021

hey @Fibonacci336 - sorry about that! we should be able to get this sorted

what version of Xcode are you on? we compiled the last few versions with Xcode 13 - in the past the Swift compilers across Xcode versions sometimes don't play nice with each other...but I'd have hoped all of those issues would've been resolved by now, especially since we've switched to .xcframeworks

if you're on Xcode 12, and aren't able to update to 13, you can try an older GIPHY SDK version

@carlsondev
Copy link
Author

carlsondev commented Dec 6, 2021

I am currently on Xcode version 13.1 (13A1030d)

@cgmaier
Copy link
Contributor

cgmaier commented Dec 6, 2021

thanks for clarifying - I'll look into this & try to get back to you by EOD tomorrow

@carlsondev
Copy link
Author

Thank you!

@cgmaier
Copy link
Contributor

cgmaier commented Dec 7, 2021

hey @Fibonacci336 we weren't able to repro on our end. I wonder if it could be a CocoaPods issue - similar to mapbox/mapbox-navigation-ios#2674 (comment)

what version of CocoaPods are you on ?

@carlsondev
Copy link
Author

Version 1.9.3

@carlsondev
Copy link
Author

@cgmaier I updated CocoaPods and reinstalled my pods and no change

@carlsondev
Copy link
Author

For anyone in the future: pod deintegrate, then delete derived data, then pod install

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants