mirror of
https://github.com/ProxymanApp/atlantis.git
synced 2026-04-26 08:26:04 +03:00
[GH-ISSUE #123] Error: Type of expression is ambiguous without more context #76
Labels
No labels
Done
Done
Windows
bug
bug
bug
enhancement
enhancement
enhancement
good first issue
hacktoberfest
pull-request
wontfix
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/atlantis#76
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @rustemmanafov on GitHub (Feb 2, 2023).
Original GitHub issue: https://github.com/ProxymanApp/atlantis/issues/123
func swizzleConnectionDidReceiveResponse(anyClass: AnyClass) {
//
// Have to explicitly tell the compiler which func
// because there are two different objc methods, but different argments
// It causes the bug: Ambiguous use of 'connection(:didReceive:)'
//
let selector: Selector = #selector((NSURLConnectionDataDelegate.connection(_:didReceive:)!)
as (NSURLConnectionDataDelegate) -> (NSURLConnection, URLResponse) -> Void)
func swizzleConnectionDidReceiveData(anyClass: AnyClass) {
//
// Have to explicitly tell the compiler which func
// because there are two different objc methods, but different argments
// It causes the bug: Ambiguous use of 'connection(:didReceive:)'
//
let selector : Selector = #selector((NSURLConnectionDataDelegate.connection(_:didReceive:)!)
as (NSURLConnectionDataDelegate) -> (NSURLConnection, Data) -> Void)
@rustemmanafov commented on GitHub (Feb 2, 2023):
Hi, Nghia please help me about this.
@NghiaTranUIT commented on GitHub (Feb 2, 2023):
Can you share with me some context:
@rustemmanafov commented on GitHub (Feb 2, 2023):
Xcode version 14.2
Min Deployment 13.0
Atlantis version pod 'atlantis-proxyman', '~> 1.4.3'
@rustemmanafov commented on GitHub (Feb 2, 2023):
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['DEBUG_INFORMATION_FORMAT'] = 'dwarf-with-dsym'
config.build_settings['LD_NO_PIE'] = 'NO'
config.build_settings['CLANG_WARN_DOCUMENTATION_COMMENTS'] = 'NO'
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '13.0'
config.build_settings['ONLY_ACTIVE_ARCH'] = 'NO'
config.build_settings['BUILD_LIBRARY_FOR_DISTRIBUTION'] = 'YES'
end
end
end
end
@NghiaTranUIT commented on GitHub (Feb 2, 2023):
Please update the Atlantis to the latest version 1.20.0. You're using an 1 years ago version 👍
@rustemmanafov commented on GitHub (Feb 2, 2023):
Thanks a lot.