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
Related
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
When running the project on a simulator everything seems to work fine. Once i tried to deploy to an actual device I get the following error:
iOS Version - 13.0
Xcode Version - 11.3.1
Flutter Version - 1.12.13+hotfix.8
Building AOT snapshot in release mode (ios-release)...
Building App.framework for arm64...
Building App.framework for armv7...
Building AOT snapshot in release mode (ios-release)... 30.5s
Built to build/aot/.
warning: parsing line table prologue at offset 0x6f697463 found unsupported
version 0x00
warning: line table parameters mismatch. Cannot emit.
note: while processing
/Users/<Username>/Documents/flutter_test_app/build/aot/armv7/snapsho
t_assembly.o
Project /Users/<Username>/Documents/flutter_test_app built and
packaged successfully.
/Users/<Username>/Documents/flutter_test_app/ios/Runner/GeneratedPlu
ginRegistrant.m:10:9: fatal error: module 'flutter_web_auth' not found
#import flutter_web_auth;
~~~~~~~^~~~~~~~~~~~~~~~
1 error generated.
/Users/<Username>/Documents/flutter_test_app/ios/Runner/GeneratedPlu
ginRegistrant.m:10:9: fatal error: module 'flutter_web_auth' not found
#import flutter_web_auth;
~~~~~~~^~~~~~~~~~~~~~~~
1 error generated.
note: Using new build system
note: Planning build
note: Constructing build description
Could not build the precompiled application for the device.
Error running application on iPhone.
Make sure you have added flutter we bauth dependency plugin in your pubspec.yaml
dependencies:
flutter_web_auth: ^0.1.3
If it's added and it still does not works, ensure also that the pod install works fine to add the plugin.
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
I am trying to generate a .framework on Xcode 7 and always get an error -
Details: Scheme was asked to build and archive, but the run destination is not a deployment platform and this action shouldn't have been allowed.
xcodebuild: error: Failed to build project UnitedSDK with scheme UnitedSDK.
Reason: You cannot archive for the iOS Simulator platform.
Command /bin/sh failed with exit code 70
Tried to change Targets, but nothing helps. This used to properly work on Xcode 6.
I'm trying to compile google protobuf protocol for using it in my iOS 5 project, but with no success yet... I found only one blog post about the topic here. But when I try this method I receive error:
h-3.2# make
make all-recursive
Making all in .
make[2]: Nothing to be done for `all-am’.
Making all in src
protoc -I. –cpp_out=. google/protobuf/unittest.proto google/protobuf/unittest_empty.proto google/protobuf/unittest_import.proto google/protobuf/unittest_mset.proto google/protobuf/unittest_optimize_for.proto google/protobuf/unittest_embed_optimize_for.proto google/protobuf/unittest_custom_options.proto google/protobuf/unittest_lite.proto google/protobuf/unittest_import_lite.proto google/protobuf/unittest_lite_imports_nonlite.proto google/protobuf/unittest_no_generic_services.proto google/protobuf/compiler/cpp/cpp_test_bad_identifiers.proto
google/protobuf/unittest.proto:490:46: Expected number.
google/protobuf/unittest.proto:491:51: Expected number.
google/protobuf/unittest.proto:492:46: Expected number.
google/protobuf/unittest.proto:493:44: Expected number.
google/protobuf/unittest.proto:494:49: Expected number.
google/protobuf/unittest.proto:495:44: Expected number.
make[2]: *** [unittest_proto_middleman] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
I have worked old project with protobuf but it is created in xcode 3.x.
Is there a way or some tutorial how to use it in xcode 4.2 and armv7 architecture?
I lose 2 days of my project time to research the problem and still no success... My project deadline is soon and I have no chance to proceed without this protobuf...
Have you tried using Objective-C protocol buffers?
This blog post gives the instructions on how to compile the protobuf library with armv7, armv7s, i386 architectures for iOS. There is also a link in the blog post to download a precompiled iOS library for protobuf that works on the device as well as the simulator.