question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[iOS] Use of undeclared identifier 'SDImageCodersManager'

See original GitHub issue

Hi all! I have problem with “archive” build for ios. i have

#import <SDWebImageWebPCoder/SDImageWebPCoder.h>

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    // ...
    // Register WebP format support
    [SDImageCodersManager.sharedManager addCoder:SDImageWebPCoder.sharedCoder];
    // ...
}

but i get error: Use of undeclared identifier ‘SDImageCodersManager’

Maybe anybody get the same error and can help me

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

7reactions
Terfendercommented, Aug 14, 2021

@Fedorrychkov , I just had this issue now and fixed it.

can you make sure you are not wrapping importing for the lib in if-else block? Just make sure you are including them in “release/production” build.

#import "SDImageCodersManager.h"
#import <SDWebImageWebPCoder/SDImageWebPCoder.h>
0reactions
anuragfexlecommented, Jul 11, 2022

@Fedorrychkov , I just had this issue now and fixed it.

can you make sure you are not wrapping importing for the lib in if-else block? Just make sure you are including them in “release/production” build.

#import "SDImageCodersManager.h"
#import <SDWebImageWebPCoder/SDImageWebPCoder.h>

thanks you saved my day.

Read more comments on GitHub >

github_iconTop Results From Across the Web

use of undeclared identifier "shouldAutorotate"
Xcode says that the "shouldAutorotate" code is undeclared. But I don't write this code. It is supplied by Apple, isn't it. This is...
Read more >
[iOS] Use of undeclared identifier 'SDImageCodersManager'
Hi all! I have problem with "archive" build for ios. i have. ```#import "SDImageCodersManager.h" #import. (BOOL)application:(UIApplication ...
Read more >
React native iOS build issue - glog - Use of undeclared ...
Run rm -rf ios/Pods , then press Cmd + Option/Alt + Shift + K to hard clean Xcode project (with DerivedData). Then running...
Read more >
iOS : Xcode "Use of undeclared identifier" errors ... - YouTube
iOS : Xcode " Use of undeclared identifier " errors, compiles/runs just fine [ Gift : Animated Search Engine : https://bit.ly/AnimSearch ] iOS...
Read more >
AR Foundation - undeclared identifier kCLErrorDomain
unity.xr.arkit/Runtime/iOS/UnityARKit.m(91,28): error: use of undeclared identifier 'kCLErrorDomain'; did you mean 'SCNErrorDomain ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found