How to resolve SFErrorDomain Code=1 error - objective-c

I am trying to making a blocker for Mac,I have follow these steps(link)
and then using this code
[SFContentBlockerManager reloadContentBlockerWithIdentifier:APP_EXTENSION_NAME completionHandler:^(NSError * _Nullable error) {
NSLog(#"%#",error);
}];
It's print
Error Domain=SFErrorDomain Code=1 "(null)"
I done googling and found that means of this error is
"noExtensionFound error."
But I am not getting any solution for How to resolve this error.

I solved this error, what a silly mistake.
This error is coming because in new Xcode Content Blocker Extension comes with a different option next to safari extension option, and I chooses safari extension, and I am trying to make Content Blocker.So that's why "noExtensionFound error" is coming.

Another potential issue is that you may have ticked the "Embed App Extensions" -> Copy Only when installing within the Build Phases
So make sure you keep that unticked in order for it to work

Related

Technical Error: Details: Error Thrown: [Object Object] Text Status: Parsererror in Prestashop

I have an error when I put more than 12 or so ranges to my carriers. I have one carrier with 10 ranges and it works just fine. The problem comes when I try to put more ranges. I tryied to delete the carrier and start over but it keeps showing the same error again and again.
I don't know if someone has found the solution for this problem or knows anything that could help.
My version of Prestashop is 1.7.7.5
Thank you so much!

getting "Fatal Error" when any function is call by $cart in Prestashop 1.7

I'm facing an issue, where I'm getting 'Fatal error' after adding product.
When I call any cart method, it leads to fatal error.
PS: 1.7.8.2
https://beta.claap.io/sendinblue/fatal-error-c-3YfMIiN6mG-AL7OcMGtoJMg
As you can see from the error StackTrace , issue is caused by the "sendinblue" module, that executes some code in the "actionCartSave" hook.
Try disabling the module in first place to see if problem goes away,
then you need to check the module code (maybe there's an updated version?) to see where/when the fatal error arises.

UWP XAML designer exception - Template10 stopped working suddenly

From one moment to another I am receiving the following error messages:
When starting the UWP app:
One of the content dialog constructor -> InitializeComponent() throws the following exception:
Windows.UI.Xaml.Markup.XamlParseException: 'The text associated with this error code could not be found.
Cannot deserialize XBF metadata property list as 'Behaviors' was not found in type 'Microsoft.Xaml.Interactivity.Interaction'. [Line: 0 Position: 0]'
http://prntscr.com/rb8bdj
And I can't open the XAML Designer:
http://prntscr.com/rb8boo
Template10 version: 1.1.12
Microsoft.Xaml.Behaviors.Uwp.Managed: 2.0.1
So the latest.
There was no any previous sign, this error come up from one moment to another today, everything was working smoothly before.
Can you please suggest anything how can I fix it or debug it?
Solution:
Finally figured out that anything went wrong with the project configuration, after deleting and readding the debug config solved the problem.

CCLabelBMFont crashing due to a missing image message

I'm getting an exception saying that the image cannot be nil on this line:
CCLabelBMFont *label = [CCLabelBMFont labelWithString:#"5" fntFile:#"weaponnumbers.fnt"];
What am I doing wrong? Am I supposed to specify the PNG somewhere different? I have it at the root of the project.
-(CCTexture2D*) addImage: (NSString*) path
{
NSAssert(path != nil, #"TextureCache: fileimage MUST not be nill");
Is weaponnumbers.fnt included in your target? E.g. is it compiled into the project?
Also, I think it's unlikely you're getting an exception here - you're probably getting an exception somewhere inside one of the calls made by this call. Try breakpointing the line before, and using the "Step In" breakpoint tool to step through the call stack and find the true nature of the exception.
I find Cocos2D exceptions to be pretty self-explanatory, when you can eventually get down to the right level of where the exception is actually being thrown.
A delete add and clean fixed it.
NSString stringWithContentsOfFile failing with what seems to be the wrong error code

How can I work around "Xcode could not locate source file"

I'm working with the ID3 framework in Xcode (which has since disappeared off the face of the web - including google cache!).
I'm testing out an import mp3 feature which allows them to edit the tags as they import them. One of the test cases is a corrupt or invalid mp3 with no proper id3 header. The problem I'm having is that when updating the tags of the invalid mp3 (updateFile:), the ID3 framework attempts to use id3V1Tag.m (I assume it falls back to this if it can't find the v2 tag) and this is where I get the Xcode error (whilst running the program, not building):
Xcode could not locate source file: id3V1Tag.m (line: 299)
Even in a release build this crashes the program, so it's not something I can really ignore.
I've tried putting a try/catch block around it but it's not treated as an exception so doesn't get caught. The function to load the tag data for the file returns a BOOL but it appears this only returns false if the given file doesn't exist, so this doesn't help either.
Current code:
[tagData release];
tagData = [[TagAPI alloc] initWithGenreList:nil];
tagsLoaded = [tagData examineFile:exportPath];
if(tagsLoaded) {
[tagData setTitle:title];
[tagData setArtist:artist];
[tagData setComments:comments];
#try {
[tagData updateFile];
}
#catch (id e){
NSLog(#"h");
}
}
The error you're getting is that Xcode is trying to locate your source file id3V1Tag.m in order to show it during debugging. No code you write will affect this.
If you don't have the id3V1Tag.m source file in your framework distro, there's nothing you can do about this, and there's little to do but ignore it (other than seeing if you can avoid causing it to be requested, like not setting a breakpoint in it, not stepping into it, and not crashing in it).
If you do have it, and are building it, then perhaps you're not building with the right debug information, so you'll have to tell us more about your build setup.
So the problem you're having is that your program is crashing when you attempt to compile id3V1Tag.m or while running the program. I'm a bit confused on that.
If its crashing while running maybe this is an issues with a code file missing from a library? How are you reading the ID3 tag information exactly? Is it through your own code or through a 3rd party library/class.