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

[Xcode 15] Compiling for iOS 13.0, but module 'RealmSwift' has a minimum deployment target of iOS 17.0 #8373

Closed
djtyranix opened this issue Sep 23, 2023 · 11 comments
Assignees
Labels
Encryption:Off Frequency:Always More-information-needed More information is needed to progress. The issue will close automatically in 2 weeks. O-Community Repro:Always SDK-Use:Local T-Bug Waiting-For-Reporter Waiting for more information from the reporter before we can proceed

Comments

@djtyranix
Copy link

How frequently does the bug occur?

Always

Description

I am using the latest version of Realm through CocoaPods. (pod 'RealmSwift', '~>10'). Whenever I do a pod install, it always shows this error message and causes an error on a clean install too. The suspect (which is a bit weird) is on the Minimum Deployment version when I see it through the Pods' project.

It looks like this: $(IPHONEOS_DEPLOYMENT_TARGET_$(XCODE_VERSION_MAJOR)) on both Realm and RealmSwift.
Screenshot 2023-09-23 at 21 33 39

I already set my platform version in the Podfile (13.0) but seems like it doesn't matter.

Stacktrace & log output

No response

Can you reproduce the bug?

Always

Reproduction Steps

pod install

Version

10.42.3

What Atlas Services are you using?

Local Database only

Are you using encryption?

No

Platform OS and version(s)

iOS / 17.0

Build environment

Xcode version: 15
Dependency manager and version: CocoaPods 1.13.0

@TooComplicatedBye
Copy link

I have the same issue, please fix this!

@dianaafanador3
Copy link
Contributor

There shouldn't be any issue, the variable in minimum deployment in Realm and RealmSwift targets in the Pods project, indicates than if the Xcode version is 15, the minimum deployment target is iOS 12 and for XCode version lower than 15, it should be iOS 11. Can you please share a project with the issue @djtyranix

@djtyranix
Copy link
Author

@dianaafanador3 hello! Unfortunately i cannot share the project because it was a company project. But i did set the minimum version on Pods, i set it to iOS 13. My expectation is that whenever i redo pod install, Realm should automatically target the number on the Podfile, yes? If yes, then it doesn't happen.

@dianaafanador3
Copy link
Contributor

Can you please reinstall your pods, pod deintegrate, remove Podfile.lock and rerun pod install?

@TooComplicatedBye
Copy link

TooComplicatedBye commented Oct 10, 2023

Can you please reinstall your pods, pod deintegrate, remove Podfile.lock and rerun pod install?

I have tried this on my own project and it is still reproducing.

@MartinMoizard
Copy link

I'm facing the same issue with SPM and another dependency. This is not related to RealmSwift.

@roman-sundurov
Copy link

I have the same issue.

@nguyendai0208
Copy link

resolved after upgrade to version "v10.43.1"
with Carthage, Xcode 15

@nirinchev
Copy link
Member

If anyone is facing this issue with the latest version of Realm on a clean project (i.e. one that can be shared with us to debug), please let us know. Otherwise, we'll consider this as resolved upstream.

@sync-by-unito sync-by-unito bot added More-information-needed More information is needed to progress. The issue will close automatically in 2 weeks. Waiting-For-Reporter Waiting for more information from the reporter before we can proceed labels Feb 6, 2024
Copy link

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.

@pzanitti
Copy link

Can confirm it's resolved after updating

Installing Realm 10.47.0 (was 10.38.0)
Installing RealmSwift 10.47.0 (was 10.38.0)

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Encryption:Off Frequency:Always More-information-needed More information is needed to progress. The issue will close automatically in 2 weeks. O-Community Repro:Always SDK-Use:Local T-Bug Waiting-For-Reporter Waiting for more information from the reporter before we can proceed
Projects
None yet
Development

No branches or pull requests

8 participants