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?
Related
fatal error: 'Flutter/Flutter.h' file not found
#import <Flutter/Flutter.h>
^~~~~~~~~~~~~~~~~~~
1 error generated.
note: Using new build system
note: Planning
note: Build preparation complete
note: Building targets in parallel
Could not build the application for the simulator.
Error launching application on iPhone 13.
Just remove ios/Flutter/Flutter.podspec: rm ios/Flutter/Flutter.podspec
Then run flutter clean
Run your app again.
Boom! Your Error might be solved.
if won't work follow this doc. https://fluttercorner.com/error-flutter-flutter-h-file-not-found-when-flutter-run-on-ios/
When I create my project, everything looks good, vapor tells me "Project demoNew has been created!", but after that I try to build it and i have an error
Error looks like:
error: Error Domain=NSCocoaErrorDomain Code=513 "You don’t have permission."
VaporToolbox/exec.swift:55: Fatal error: result 1
Illegal instruction
I tried to use sudo, and I have same result..
ubuntu 20.04 64bit
swift 5.5.1
I am new to RingCentral. I am trying with RingCentral Swift for iOS application. I am checking the reference here.
I am getting following issue of compile failure:
*** Fetching Alamofire
*** Fetching ObjectMapper
*** Checking out ObjectMapper at "3.4.2"
*** Checking out Alamofire at "4.8.1"
*** Checking out ringcentral-swift at "1.0.1"
*** Checking out CryptoSwift at "0.14.0"
*** Checking out objective-c at "v4.8.5"
*** xcodebuild output can be found in /var/folders/49/ckkpnf9n6lgbfsfp407twf840000gn/T/carthage-xcodebuild.gTqjHT.log
*** Building scheme "Alamofire iOS" in Alamofire.xcworkspace
*** Building scheme "CryptoSwift" in CryptoSwift.xcworkspace
*** Building scheme "Framework (iOS)" in PubNub.xcworkspace
*** Building scheme "ObjectMapper-iOS" in ObjectMapper.xcworkspace
*** Building scheme "RingCentral_iOS" in RingCentral.xcodeproj
Build Failed
Task failed with exit code 65: /usr/bin/xcrun xcodebuild -project /Users/......./Downloads
I searched the reason in the community but failed to understand why is the compile issue.
Please help.
I am the author of that SDK. It has low priority because it doesn't have lots of users as the other SDKs (such as C# and JS). I've got your feedback and I will try to update the SDK this quarter. Thanks.
The Swift SDK hasn't been updated for years as referenced here:
The same issue was registered here: https://github.com/ringcentral/ringcentral-swift/issues/17
Maybe the Carthage version causing the issue. You can download their repository and open their Xcode project in the latest xcode, build the project and follow the steps here to resolve the issue: RingCentral: Build Failed Task failed with exit code 65: Carthage installation
As a workaround, if you are building a GUI app, you can use WebView and JavaScript SDK as suggested here for the same issue: https://community.ringcentral.com/questions/89996/couldnt-build-ringcentral-library.html
Here is my Cartfile:
# Kanna HTML parsing library
github "tid-kijyun/Kanna" ~> 1.0.0
# Realm database/ORM
github "realm/realm-cocoa"
When I run carthage update I get this:
$ carthage --version
Unrecognized command: '--version'. See `carthage help`.
$ carthage update --platform OSX
*** Fetching realm-cocoa
*** Fetching Kanna
*** Skipped downloading realm-cocoa.framework binary due to the error:
"GitHub API request failed: Bad credentials"
*** Checking out realm-cocoa at "v0.98.3"
*** Skipped downloading Kanna.framework binary due to the error:
"GitHub API request failed: Bad credentials"
*** Checking out Kanna at "1.0.5"
*** xcodebuild output can be found in /var/folders/p2/c_d5mx0s3gl45165btrpx1fm0000gn/T/carthage-xcodebuild.KVYEob.log
*** Building scheme "Kanna_OSX" in Kanna.xcworkspace
*** Building scheme "RealmSwift" in RealmExamples.xcworkspace
*** Building scheme "Realm" in RealmExamples.xcworkspace
So it does seem to build both Kanna and Realm, but I'm getting an error about bad GitHub API credentials. What is wrong?
I got the solution in response to a Carthage issue I raised:
Edit ~/.gitconfig and add the following:
[credential]
helper = osxkeychain
[credential "https://github.com"]
username = willhains
(Replace willhains with your GitHub user ID.)
Clone a private repo via HTTPS.
OSX will prompt for your GitHub password.
Run carthage update.
If you want to skip looking for binaries and just build from source:
carthage update --no-use-binaries
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.