Having this stripe issue after updating Xcode ^ - flutter

I updated my MacBook and now I get this issue from Xcode about my project and can run it :
/Users/ralucaraluca/Downloads/tariffo/tariffo/ios/Pods/Stripe/Stripe/STPPinManagementService.m:51:81:
error: 'new' is unavailable: You cannot directly instantiate an STPIssuingCardPin
deserializer:[STPIssuingCardPin new]
^
In file included from
/Users/ralucaraluca/Downloads/tariffo/tariffo/ios/Pods/Stripe/Stripe/STPPinManagementService.m:11:
/Users/ralucaraluca/Downloads/tariffo/tariffo/ios/Pods/Stripe/Stripe/PublicHeaders/STPIssuingCardPin.h:22:
1: note: 'init' has been explicitly marked unavailable here
- (instancetype)init __attribute__((unavailable("You cannot directly instantiate an STPIssuingCardPin")));
^
/Users/ralucaraluca/Downloads/tariffo/tariffo/ios/Pods/Stripe/Stripe/STPPinManagementService.m:101:81:
error: 'new' is unavailable: You cannot directly instantiate an STPIssuingCardPin
deserializer:[STPIssuingCardPin new]
^
In file included from
/Users/ralucaraluca/Downloads/tariffo/tariffo/ios/Pods/Stripe/Stripe/STPPinManagementService.m:11:
/Users/ralucaraluca/Downloads/tariffo/tariffo/ios/Pods/Stripe/Stripe/PublicHeaders/STPIssuingCardPin.h:22:
1: note: 'init' has been explicitly marked unavailable here
- (instancetype)init __attribute__((unavailable("You cannot directly instantiate an STPIssuingCardPin")));
^
ANY IDEA WHAT CAN I DO???

Yeah it's actually a problem caused by updating the XCode.
There are some workarounds in here. One of them is the XCode downgrade :/

Same thing happened with me, I changed my macbook and now xcode is giving this weird issue. I followed this link and updated my 'Stripe' version.
'new' is unavailable: You cannot directly instantiate an STPIssuingCardPin
This is what i followed:
comment out pod 'stripe' line
run pod install
uncomment line
run pod install

Related

Facing a problem to set up the emulator in flutter

I have the following problem.....
Error: Variables must be declared using the keywords 'const', 'final', 'var' or a type name.
Try adding the name of the type of the variable or the keyword 'var'.
int _counter = 0;dsggfsgfh;
^^^^^^^^^
Target kernel_snapshot failed: Exception
FAILURE: Build failed with an exception.
I'm a beginner with Flutter. How can I solve this problem?
Your code has junk words or sentences, check your line ended with dsggfsgfh; which might be added unfortunately. Just remove it this will work.
It's possible that it's a compatibility issue between flutter framework and engine. You can try and:
Upgrade flutter to the latest version
Create a new project
Copy the code from the old project in steps
If you have plugins from the old project, add them one by one as you run the emulator
(It's possible that a certain version of a plugin has a compatibility issue with flutter)

Invalid diagnostics signature

When I build my project and I don't know how, I got this type of warning:
Could not read serialized diagnostics file: Invalid File: Invalid diagnostics signature
It is just shows the name of class but did not mentioned any location.
Any advise?
This is new as of Xcode 11.5, as far as I can tell, and it happens when you interrupt a running build. The warnings disappear when you let a new build run to completion.

Swift build error_if_any_output_files_are_specified_they_all_must_be

When converting to use the new build system on Xcode 10, I get the following error in my output for several of my extension targets.
<unknown>:0: error: if any output files are specified, they all must be
Command CompileSwift failed with a nonzero exit code
I have looked for a solution online, but the only reference I can find to this error is in the Swift compiler source code itself.
https://www.google.com/search?q=error_if_any_output_files_are_specified_they_all_must_be
Does anyone know how this error is actually triggered, or what I can do to fix it?
Ok, I had the same problem with one of our projects. Building or Archiving are always stopped with the error <unknown>:0: error: if any output files are specified, they all must be.
The solution for us was to set Compilation Mode to Incremental instead of Whole Module.
This means, you have to ignore the Validate Project Settings warning:

UIKit.NSUnderlineStyle single or styleSingle

I am trying to upgrade my AttributedTextView library to Swift 4.2.
During this conversion I had to change NSUnderlineStyle.styleSingle to NSUnderlineStyle.single and now my project builds and runs
Now I want to publish my update, but when doing a pod lib lint I am getting the following error:
- ERROR | [iOS] xcodebuild: /Users/evermeer/Dev/GitHub/AttributedTextView/Sources/Attributer.swift:621:48: error: 'single' has been renamed to 'styleSingle'
- NOTE | [iOS] xcodebuild: UIKit.NSUnderlineStyle:15:23: note: 'single' was introduced in Swift 4.2
when I change it back to styleSingle, the pod error disappears but my project won't build.
My pod spec does contain the line
s.pod_target_xcconfig = { 'SWIFT_VERSION' => '4.2' }
but setting it to any other version does not help.
any idea how to solve this?
instead of using the now deprecated pod_target_xcconfig you should use: s.swift_version = '4.2'
In my case I also had a file with the name .swift_version that contained 4.0
If you use both and they are different, then you will get a warning.

Foundation framework. No NSString.h file

I'm getting a few errors just after I updated my working copy via SVN.
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSCharacterSet.h:8:0 /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSCharacterSet.h:8:32: error: Foundation/NSString.h: No such file or directory
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSCharacterSet.h:45:0 /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSCharacterSet.h:45: error: expected ')' before 'unichar'
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSPathUtilities.h:10:0 /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSPathUtilities.h:10: error: cannot find interface declaration for 'NSString'
All that errors tell that compiler is unable to find NSString.h file in Foundation framework and I have opened the Foundation framework in Xcode/Frameworks/Foundation.framework/Headers and noticed that there is no NSString header file there. Could anyone tell me what happened? I tried to delete the framework and add it again but it failed to. Still I don't have NSString header file.
try installing XCode again. Older SDK versions are no longer supported. Choose SDK 4.2 instead and compile it again. (I have copied the SDK 4.0 for backward compatibility but it is not shown in targets and project settings)
I had this problem in a project started in XCode 3 and now compiled in XCode 4, where the line
-#include <Foundation/NSString.h>
was flagged as no such file. I fixed it by re-adding the framework - although it was already appearing in my project (from when I had added it in XCode 3) using this approach:
How to "add existing frameworks" in Xcode 4?
I noticed the list seen by using this method did not include the Foundation framework.