I have installed the PhoneGap library for iOS and created a new project, but when I run the application I get the error Base SDK missing. Why is this?
edit 1
230 errors after applying mAc reply these are some of the errors:
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFContext.h:60:23 /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFContext.h:60:23: error: expected function body after function declarator
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:250:91 /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:250:91: error: expected a type
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:256:86 /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:256:86: error: expected a type
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:258:114 /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:258:114: error: expected a type
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:187:31 /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:187:31: error: unknown type name 'UIApplicationState'
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:190:4 /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:190:4: error: expected a type
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:191:28 /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:191:28: error: expected a type
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:202:45 /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:202:45: error: expected a type
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:206:4 /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:206:4: error: expected a type
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITextView.h:82:22 /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITextView.h:82:22: error: unknown type name 'UIDataDetectorTypes'
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIWebView.h:54:22 /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIWebView.h:54:22: error: unknown type name 'UIDataDetectorTypes'
/Users/Ahmed/Documents/PhoneGapLib/Classes/Camera.h:56:10 /Users/Ahmed/Documents/PhoneGapLib/Classes/Camera.h:56:10: error: cannot find protocol declaration for 'UIPopoverControllerDelegate'; did you mean 'UITabBarControllerDelegate'?
/Users/Ahmed/Documents/PhoneGapLib/Classes/Camera.m:24:3 /Users/Ahmed/Documents/PhoneGapLib/Classes/Camera.m:24:3: error: use of undeclared identifier 'UIUserInterfaceIdiomPhone'; did you mean 'UIUserInterfaceIdiom'?
i think you have import a project...
see select your project and go its INFO -> there in build Tab -> Architectures -> In Base SDK select Latest iOS -> save n close. Now select the simulator (by default Device is selected).
And then run the app.
Edited :-
Might be a bug in Xcode 3.2.4 or the SDK configuration.
Try placing a line like one of these in your Build Settings Preprocessor Macros:
-D__IPHONE_OS_VERSION_MIN_REQUIRED=040100
or
-D__IPHONE_OS_VERSION_MIN_REQUIRED=030103
You can Check Here also regarding your problem.
Hope it Helps :) Adios
In the project.pbxproj file, I had to change this in a few places:
IPHONEOS_DEPLOYMENT_TARGET = 5.0;
to
IPHONEOS_DEPLOYMENT_TARGET = 6.1;
Related
Everything works fine and App is already in the play store but when i try to test for a web version it produces below error just for this particular App.
I want to know what is exactly wrong
lib/main.dart:15:8: Error: Error when reading
'lib/generated_plugin_registrant.dart': The system cannot find the
file specified.
import 'package:[NameOfApp goes
here]/generated_plugin_registrant.dart';
^ lib/main.dart:16:8: Error: Error when reading 'lib/generated_plugin_registrant.dart': The system cannot find the
file specified.
org-dartlang-app:/web_entrypoint.dart:11:3: Error: Method not found: 'registerPlugins'.
registerPlugins(webPluginRegistry);
^^^^^^^^^^^^^^^
Failed to compile application.
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.
I have a flutter project in which I added the dependency Multi_image_Picker and I when running the app, it stopped responding in
resolving dependencies
. and the console showed errors asking me to migrate project to AndroidX.
I used instructions in this link to migrate to AndroidX. I used the selected answer. the first 3 steps didn't solved the issue so I went to 4 and all the way to the bottom.
I did that but although I still can run the app in both simulator and real device, i get 13 error about the AndroidManifest.xml when I try to commit the project and preview for errors and warnings.
I am afraid if commit the project with these errors later when compiling the app for Google Play upload I might get errors.
the AndroidMinifest shows several line of code in red and it shows these errors :
Error:(1, 2) Cannot find the declaration of element 'manifest'.
Error:(1, 26) URI is not registered (Settings | Languages & Frameworks | Schemas and DTDs).
Error:(13, 26) Unresolved package 'flutter'.
Error:(13, 34) Unresolved package 'app'
Error:(13, 38) Unresolved class 'FlutterApplication'.
Error:(15, 9) Attribute android:icon is not allowed here.
Error:(19, 28) Unresolved class 'MainActivity'.
Error:(20, 13) Attribute android:launchMode is not allowed here.
Error:(21, 13) Attribute android:theme is not allowed here.
Error:(22, 13) Attribute android:configChanges is not allowed here.
Error:(23, 13) Attribute android:hardwareAccelerated is not allowed here.
Error:(24, 13) Attribute android:windowSoftInputMode is not allowed here.
Error:(38, 3) Cannot find the declaration of element 'manifest'.
Just commit with the errors. These errors don’t cause problems in google play store when the app is submitted.
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:
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.