[PR #480] [MERGED] Add @nonobjc to topViewController in UIApplication extension to fix ld warning #644

Closed
opened 2026-03-03 16:49:53 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/OAuthSwift/OAuthSwift/pull/480
Author: @uson1x
Created: 7/13/2018
Status: Merged
Merged: 7/13/2018
Merged by: @phimage

Base: masterHead: ld-warning-fix


📝 Commits (1)

  • 436ccca Add @nonobjc to topViewController in UIApplication extension to fix ld warning

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 Sources/UIApplication+OAuthSwift.swift (+1 -1)

📄 Description

I don't know if it's something wrong in my project, but when I added last version of OAuthSwift via cocoapods, ld started emitting the following warning each time:

ld: warning: Some object files have incompatible Objective-C category definitions. Some category metadata may be lost. All files containing Objective-C categories should be built using the same compiler.

With this addition the warning is gone.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/OAuthSwift/OAuthSwift/pull/480 **Author:** [@uson1x](https://github.com/uson1x) **Created:** 7/13/2018 **Status:** ✅ Merged **Merged:** 7/13/2018 **Merged by:** [@phimage](https://github.com/phimage) **Base:** `master` ← **Head:** `ld-warning-fix` --- ### 📝 Commits (1) - [`436ccca`](https://github.com/OAuthSwift/OAuthSwift/commit/436cccab369826ff3b2ab97ad3b5ec3f01654984) Add @nonobjc to topViewController in UIApplication extension to fix ld warning ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `Sources/UIApplication+OAuthSwift.swift` (+1 -1) </details> ### 📄 Description I don't know if it's something wrong in my project, but when I added last version of OAuthSwift via cocoapods, `ld` started emitting the following warning each time: ` ld: warning: Some object files have incompatible Objective-C category definitions. Some category metadata may be lost. All files containing Objective-C categories should be built using the same compiler.` With this addition the warning is gone. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-03 16:49:53 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/OAuthSwift#644
No description provided.