Everytime I want to use a plugin I can't build a project and get this error:
$ cordova emulate ios
Generating config.xml from defaults for platform "ios"
Preparing ios project
Running on emulator for platform "ios" via command "/Users/jakob/Dropbox/Coding/+diplomarbeit/phonegap/rlb_cordova/platforms/ios/cordova/run" --emulator
/Users/jakob/lib/node_modules/cordova/node_modules/q/q.js:126
throw e;
^
Error: An error occurred while emulating/deploying the ios project. ** BUILD FAILED **
The following build commands failed:
Check dependencies
(1 failure)
2013-12-31 15:54:27.469 xcodebuild[10583:641b] DVTAssertions: Warning in /SourceCache/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-3575/Xcode3Sources/XcodeIDE/Frameworks/DevToolsBase/pbxcore/SpecificationTypes/XCGccMakefileDependencies.m:78
Details: Failed to load dependencies output contents from ``/Users/jakob/Dropbox/Coding/+diplomarbeit/phonegap/rlb_cordova/platforms/ios/build/rlb_cordova.build/Debug-iphonesimulator/rlb_cordova.build/Objects-normal/i386/CDVDevice.d''. Error: Error Domain=NSCocoaErrorDomain Code=260 "The file “CDVDevice.d” couldn’t be opened because there is no such file." UserInfo=0x7ff3ba0424e0 {NSFilePath=/Users/jakob/Dropbox/Coding/+diplomarbeit/phonegap/rlb_cordova/platforms/ios/build/rlb_cordova.build/Debug-iphonesimulator/rlb_cordova.build/Objects-normal/i386/CDVDevice.d, NSUnderlyingError=0x7ff3ba042590 "The operation couldn’t be completed. No such file or directory"}. User info: {
NSFilePath = "/Users/jakob/Dropbox/Coding/+diplomarbeit/phonegap/rlb_cordova/platforms/ios/build/rlb_cordova.build/Debug-iphonesimulator/rlb_cordova.build/Objects-normal/i386/CDVDevice.d";
NSUnderlyingError = "Error Domain=NSPOSIXErrorDomain Code=2 \"The operation couldn\U2019t be completed. No such file or directory\"";
}.
Function: void XCGccMakefileDependenciesParsePathsFromRuleFile(NSString *__strong, F) [F = <lambda at /SourceCache/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-3575/Xcode3Sources/XcodeIDE/Frameworks/DevToolsBase/pbxcore/SpecificationTypes/XCGccMakefileDependencies.m:168:73>]
Thread: <NSThread: 0x7ff3ba041890>{name = (null), num = 9}
Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.
** BUILD FAILED **
The following build commands failed:
CompileC build/rlb_cordova.build/Debug-iphonesimulator/rlb_cordova.build/Objects-normal/i386/CDVDevice.o rlb_cordova/Plugins/org.apache.cordova.device/CDVDevice.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
at ChildProcess.<anonymous> (/Users/jakob/lib/node_modules/cordova/src/emulate.js:67:22)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at maybeClose (child_process.js:735:16)
at Socket.<anonymous> (child_process.js:948:11)
at Socket.EventEmitter.emit (events.js:95:17)
at Pipe.close (net.js:466:12)
I only used the CLI and didn't mess with any config. Here I tried to install the device plugin like:
$ cordova plugin add org.apache.cordova.device
Fetching plugin from "org.apache.cordova.device"...
Starting installation of "org.apache.cordova.device" for android
Preparing android project
org.apache.cordova.device installed on android.
Starting installation of "org.apache.cordova.device" for ios
Preparing ios project
org.apache.cordova.device installed on ios.
Looks not too bad but however I can't build the project. Just when I remove the plugin with:
$ cordova plugin remove org.apache.cordova.device
Anyone else having this issues?
My Versions:
$ npm --version
1.3.14
$ node --version
v0.10.22
$ cordova --version
3.3.1-0.1.2
$ git --version
git version 1.8.3.4 (Apple Git-47)
I had the same problem, and I solved It creating the project with uppercase in the first letter of project name. Yes, it seems incredible, but this was the solution.
Related
Im trying to build a iOS in codemagic.io and after try it, it return the error below
== Building for iOS ==
> flutter build ios --debug --no-codesign
Running "flutter pub get" in clone... 1,350ms
Warning: Building for device with codesigning disabled. You will have to manually codesign before deploying to device.
Building com.testing.correiosNovo for device (ios)...
Upgrading Info.plist
Running pod install... 1,296ms
Running Xcode build...
Xcode build done. 14.6s
Build failed :|
Failed to build for iOS
Failed to build iOS app
Error output from Xcode build:
↳
2022-09-23 23:19:22.708 xcodebuild[1114:7432] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionSentinelHostApplications for extension Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
2022-09-23 23:19:22.709 xcodebuild[1114:7432] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
** BUILD FAILED **
Xcodes output:
↳
Writing result bundle at path:
../programs/flutter_3_3_2/.pub-cache/hosted/pub.dartlang.org/win32-2.3.6/lib/src/structs.g.dart:661:31: Error: Member not found: 'UnicodeChar'.
int get UnicodeChar => Char.UnicodeChar;
^^^^^^^^^^^
../programs/flutter_3_3_2/.pub-cache/hosted/pub.dartlang.org/win32-2.3.6/lib/src/structs.g.dart:662:38: Error: Setter not found: 'UnicodeChar'.
set UnicodeChar(int value) => Char.UnicodeChar = value;
^^^^^^^^^^^
../programs/flutter_3_3_2/.pub-cache/hosted/pub.dartlang.org/win32-2.3.6/lib/src/structs.g.dart:664:29: Error: Member not found: 'AsciiChar'.
int get AsciiChar => Char.AsciiChar;
^^^^^^^^^
../programs/flutter_3_3_2/.pub-cache/hosted/pub.dartlang.org/win32-2.3.6/lib/src/structs.g.dart:665:36: Error: Setter not found: 'AsciiChar'.
set AsciiChar(int value) => Char.AsciiChar = value;
^^^^^^^^^
Failed to package /Users/builder/clone.
Command PhaseScriptExecution failed with a nonzero exit code
note: Using new build system
note: Planning
note: Build preparation complete
note: Building targets in dependency order
Result bundle written to path:
Encountered error while building for device.
I do the process to build iOS in my computer
flutter build ios
after it, upload to Codemagic and start the process to generate app to iOS, but it return the error above, I try to find any solution to it, and can't, it returns the error every time I build it.
I think you use old Flutter version on your local machine and latest 3.3.2 when you building on Codemagic and some packages are not compatible with this version.
At Codemagic you can specify any Flutter version in build settings to reproduce your local environment and this should fix the error.
Alternative solution will be to upgrade your packages. Check this thread for more information https://github.com/flutter/flutter/issues/103565
Hi guys i'd tried to use pod install in windows but seems not import dependences from flutter i have that error.. from codemagic
i solve this part... i'ts an pod install i follow guide to install pod in windows...now i have another issue.
enter code here
== Building for iOS ==
== /usr/local/bin/flutter build ios --debug --no-codesign ==
Warning: Building for device with codesigning disabled. You will have to manually codesign before deploying to device.
Building com.corte.takeaway for device (ios)...
Running pod install...
1.7s
Running Xcode build...
Xcode build done. 29.0s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
/Users/builder/clone/ios/Runner/GeneratedPluginRegistrant.m:10:9: fatal error: module 'firebase_auth' not found
#import firebase_auth;
~~~~~~~^~~~~~~~~~~~~
1 error generated.
note: Using new build system
note: Planning build
note: Constructing build description
Encountered error while building for device.
Build failed :|
Failed to build for iOS
Well, its seems like you forget to add googleservice.plist file in your project. Error occors
I'm following the steps to install SwiftyDropbox using Carthage. My Cartfile is:
# SwiftyDropbox
github "https://github.com/dropbox/SwiftyDropbox" ~> 5.1.0
When I run "carthage update --platform iOS" I get:
third_party (master) $ carthage update --platform iOS
*** Fetching SwiftyDropbox
*** Fetching Alamofire
*** Checking out Alamofire at "4.9.1"
*** Checking out SwiftyDropbox at "5.1.0"
*** xcodebuild output can be found in /var/folders/gk/1sxbjcg969d6k1lc945cvz2m0000gn/T/carthage-xcodebuild.jD6xnh.log
*** Building scheme "Alamofire iOS" in Alamofire.xcworkspace
Failed to write to /.../third_party/Carthage/Build/iOS/Alamofire.framework: Error Domain=NSCocoaErrorDomain Code=260 "The file “Alamofire.framework” couldn’t be opened because there is no such file." UserInfo={NSURL=file:///.../third_party/Carthage/Checkouts/Alamofire/build/ArchiveIntermediates/Alamofire%20iOS/BuildProductsPath/Release-iphoneos/Alamofire.framework, NSFilePath=/.../third_party/Carthage/Checkouts/Alamofire/build/ArchiveIntermediates/Alamofire iOS/BuildProductsPath/Release-iphoneos/Alamofire.framework, NSUnderlyingError=0x7f92c9407d60 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}
I see there is a difference in the paths, where the UserInfo path has an escape character: Alamofire%20iOS while the NSFilePath doesn't (Alamofire iOS). I'm using macOS 10.15.2, Xcode 11.3, carthage 0.34.0. Why is the escape character there and how can I fix it?
Hello i get the project from http://reactorapps.io/blog/wordpress-api-ionic-app/
now i want add android platfrom , when i use ionic platform add android
i get this error :
D:\downloadionic\reactorApp\reactorApp>ionic platform add android
✗ (node:9956) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
Updated the hooks directory to have execute permissions
(node:1316) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
Creating android project...
C:\Users\Pouria.cordova\lib\npm_cache\cordova-android\3.6.4\package\bin\node_modules\q\q.js:126
throw e;
^
Error: Please install Android target "android-19".
Hint: Run "android" from your command-line to open the SDK manager.
at C:\Users\Pouria.cordova\lib\npm_cache\cordova-android\3.6.4\package\bin\lib\check_reqs.js:174:19
at _fulfilled (C:\Users\Pouria.cordova\lib\npm_cache\cordova-android\3.6.4\package\bin\node_modules\q\q.js:798:54)
at self.promiseDispatch.done (C:\Users\Pouria.cordova\lib\npm_cache\cordova-android\3.6.4\package\bin\node_modules\q\q.js:827:30)
at Promise.promise.promiseDispatch (C:\Users\Pouria.cordova\lib\npm_cache\cordova-android\3.6.4\package\bin\node_modules\q\q.js:760:13)
at C:\Users\Pouria.cordova\lib\npm_cache\cordova-android\3.6.4\package\bin\node_modules\q\q.js:574:44
at flush (C:\Users\Pouria.cordova\lib\npm_cache\cordova-android\3.6.4\package\bin\node_modules\q\q.js:108:17)
at _combinedTickCallback (internal/process/next_tick.js:67:7)
at process._tickCallback (internal/process/next_tick.js:98:9)
Error: C:\Users\Pouria.cordova\lib\npm_cache\cordova-android\3.6.4\package\bin\create.bat: Command failed with exit code 1
at ChildProcess.whenDone (C:\Users\Pouria\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\cordova\superspawn.js:135:23)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:850:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5)
what i must to do ???
You have to install Android KitKat (4.4.2) (API 19) through the Android SDK Manager.
You can do this by installing Android Studio and accessing the SDK Manager from within it.
Select the packages that you need and hit 'Install'.
I am building a phone gap (Cordova 3.5) app for android and trying to implement facebook login. I have installed the facebook plugin then i was getting errors in connectPlugin.java file then i imported the facebook SDK library in my project. All errors showing in eclipse are gone now but when i am trying to run 'cordova build' the build fails with the following error.
BUILD FAILED
D:\android-tool\sdk\tools\ant\build.xml:653: The following error occu
executing this line:
D:\android-tool\sdk\tools\ant\build.xml:698: null returned: 1
Total time: 12 seconds
D:\xampp\htdocs\android-app\refund_app\platforms\android\cordova\node
q.js:126
throw e;
^
Error code 1 for command: cmd with args: /s,/c,ant,debug,-f,D:\xampp\
oid-app\refund_app\platforms\android\build.xml,-Dout.dir=ant-build,-D
e.dir=ant-gen
Error: D:\xampp\htdocs\android-app\refund_app\platforms\android\cordo
t: Command failed with exit code 8
at ChildProcess.whenDone (C:\Users\USER\AppData\Roaming\npm\node_
dova\node_modules\cordova-lib\src\cordova\superspawn.js:135:23)
at ChildProcess.emit (events.js:98:17)
at maybeClose (child_process.js:756:16)
at Process.ChildProcess._handle.onexit (child_process.js:823:5)
I solved this problem by myself actually the build was failing due to a invalid directory in facebook SDK
Mypath/facebook-android-sdk-3.23.0\facebook\bin\res\crunch
I cut all the contents from the 'crunch' folder and pasted it under 'res' folder then deleted the 'crunch' folder. Then cordova build started working.