Building SoundCloudAPI Fails with Apple Mach-O Librarian Error - soundcloud

I'm trying to integrate SoundCloud sharing into my project using the instructions at https://github.com/soundcloud/CocoaSoundCloudAPI. In my workspace, OHAttributedLabel, OAuth2Client, JSONKit and SoundCloudUI all build fine, but building SoundCloudAPI for iOS always fails with the following errors:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't locate file for: -lSoundCloudAPI
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: -lSoundCloudAPI is not an object file (not allowed in a library)
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool failed with exit code 1
Does anyone know what's going on here?

Related

Swift error on Windows: invalidManifestFormat: Missing or empty JSON output from manifest compilation

I've installed Swift 5.6.1 on my Windows 10 machine, including all the necessary Visual Studio components, but I can't seem to build anything. Even just running the following set of commands in git bash results in an error:
mkdir swiftTest
cd swiftTest
swift package init --type executable
swift build
Specifically, the swift build command gives the following errors:
warning: Failed creating default cache location, Error Domain=NSCocoaErrorDomain Code=256 "(null)"
'swiftTest': error: invalidManifestFormat("Missing or empty JSON output from manifest compilation for swiftTest", diagnosticFile: nil)
The error message seems surprisingly rare -- the top google results were the source of the program that generated that error, and an unrelated error with similar wording from a ReactJS application.
Do I just have to add some flags to the swift build command, or is there something else wrong with my setup?
In my case what fixed it was invoking the command from a Visual Studio Developer Command prompt.

Unrecognized font family 'FontAwesome5Free-Solid'

This happened out of nowhere, and I have no idea what happened.
I started to run my app and got this error:
I believe that it's coming from react-native-vector-icons.
I've tried switching to an older version of react-native-vector-icons, and I still receive the same result.
I've also tried to uninstall react-native-vector-icons, and, when I do, I receive a compiling error.
** BUILD FAILED **
The following build commands failed:
CompileC /Users/lukeschoenberger/Documents/Programming/news-
arg/test6/ios/build/test6/Build/Intermediates.noindex/Pods.build/Debug-
iphonesimulator/RNVectorIcons.build/Objects-
normal/x86_64/RNVectorIconsManager.o
/Users/lukeschoenberger/Documents/Programming/news-
arg/test6/node_modules/react-native-vector-
icons/RNVectorIconsManager/RNVectorIconsManager.m normal x86_64
objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
I'm pretty stuck at this point.
EDIT:
After I linked react-native-vector-desing and cleared the build folder, I received this error:
Build system information
error: Multiple commands produce '/Users/lukeschoenberger/Documents/Programming/news-arg/test6/ios/build/test6/Build/Products/Debug-iphonesimulator/test6.app/AntDesign.ttf':
1) Target 'test6' (project 'test6') has copy command from
'/Users/lukeschoenberger/Documents/Programming/news-
arg/test6/node_modules/native-base/Fonts/AntDesign.ttf' to
'/Users/lukeschoenberger/Documents/Programming/news-
arg/test6/ios/build/test6/Build/Products/Debug-
iphonesimulator/test6.app/AntDesign.ttf'
2) Target 'test6' (project 'test6') has copy command from
'/Users/lukeschoenberger/Documents/Programming/news-
arg/test6/node_modules/react-native-vector-icons/Fonts/AntDesign.ttf' to
'/Users/lukeschoenberger/Documents/Programming/news-
arg/test6/ios/build/test6/Build/Products/Debug-
iphonesimulator/test6.app/AntDesign.ttf'
** BUILD FAILED **
Icon module does not appear to be properly linked.
You can try react-native link react-native-vector-icons
If this is not a workaround,
Delete all items in the build folder under the iOS folder. Then rebuild the project with react-native run-ios.
Regular, Solid, and Brand Icons TTF File import android and ios directory
https://aboutreact.com/react-native-fontawesome/

Flutter speech_recognition swift build error

I'm getting a build error using the flutter speech_recognition package. Try to build for iOS right now. Haven't tested Android.
I followed the installation guide. The package seem to load after modifying the .yaml file. I'm using the Visual Studio IDE on a MacBook Pro.
Launching lib/main.dart on iPhone Xʀ in debug mode...
Xcode build done. 9.8s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
=== BUILD TARGET speech_recognition OF PROJECT Pods WITH CONFIGURATION Debug ===
/Users/abcdefg/Development/flutter/.pub-cache/hosted/pub.dartlang.org/speech_recognition-0.3.0+1/ios/Classes/SpeechRecognitionPlugin.m:2:9: fatal error: 'speech_recognition/speech_recognition-Swift.h' file not found
#import <speech_recognition/speech_recognition-Swift.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
Could not build the application for the simulator.
Error launching application on iPhone Xʀ.
From my dev directory. I can find speech_recognition directories, but the .h file is not anywhere to be found.
abcdefg-MacBook-Pro:Development abcdefg$ !find
find . -name speech_recognition
./learning_fluter/ios/Pods/Target Support Files/speech_recognition
./learning_fluter/ios/Pods/Headers/Public/speech_recognition
./learning_fluter/ios/Pods/Headers/Private/speech_recognition
./learning_fluter/ios/.symlinks/plugins/speech_recognition
./learning_fluter/build/ios/Debug-iphonesimulator/speech_recognition
abcdefg-MacBook-Pro:Development abcdefg$ find . -name speech_recognition-Swift.h
abcdefg-MacBook-Pro:Development abcdefg$
Any help would be appreciated!!
Make sure that the project has been created with the -i command as shown below: futter create -i swift [your_project_name].
after doing this verify that you are using in the properties of the runner SWIFT_VERSION = 4.2. since previous versions could cause this error.
And finally add below in podfile:
target 'Runner' do
  use_frameworks!

Why do i get this error message when trying to add a new framework using carthage?

I want to add a FrameWork to this app I'm working on. It converts latitude and longitude coordinates to UTM coordinates.
I added this to the cartfile:
github "peterringset/UTMConversion" ~> 1.1
But when i run this code in the terminal to clone the framework:
carthage update --platform iOS
I get this error message:
A shell task (/usr/bin/env git clone --bare --quiet https://github.com/peterringset/UTMConversion.git /Users/Fallet/Library/Caches/org.carthage.CarthageKit/dependencies/UTMConversion) failed with exit code 128:
fatal: could not read Username for 'https://github.com': terminal prompts disabled
I've used other external frameworks like this, and it used to work just fine.. Any idea how I can fix this?
The problem occurs due to a change in username by the publisher of his GitHub account. If you notice the link to the repository is https://github.com/wtw-software/UTMConversion while the Carthage reference is "peterringset/UTMConversion". I was able to solve it by changing the Carthage reference to "wtw-software/UTMConversion". But then you will get this error if you are on Swift 3 or below and Xcode 8 or below.
Task failed with exit code 65.....This usually indicates that project itself failed to compile. Please check the xcodebuild log for more details
So I digged into the logs and found this:
Check dependencies
“Swift Language Version” (SWIFT_VERSION) is required to be configured correctly for targets which use Swift. Use the [Edit > Convert > To Current Swift Syntax…] menu to choose a Swift version or use the Build Settings editor to configure the build setting directly.
** BUILD FAILED **
I googled around this error and it looks like the project is developed with Swift 4 and with Xcode 9.

Cordova header file missing while integrating PhoneGap application in Jenkins

I am trying to integrate a PhoneGap application with Jenkins, but i am getting some error messages in jenkins (and also in Terminal) as the Cordova files has not been found, but in XCode I am not getting any errors
/Users/Shared/Jenkins/Home/jobs/appName/workspace/appName/Plugins/WebAppPlugin.h:9:9: fatal error: 'Cordova/CDVPlugin.h' file not found
#import <Cordova/CDVPlugin.h>
^
1 error generated.
/Users/Shared/Jenkins/Home/jobs/appName/workspace/appName/Classes/AppDelegate.h:30:9: fatal error: 'Cordova/CDVViewController.h' file not found
#import <Cordova/CDVViewController.h>
^
1 error generated.
I tried many solutions from previous posts, nothing helps
Solution 1: "'CDVPlugin.h' file not found" in Cordova as component (Cleaver)
solution 2: 'Cordova/CDVViewController.h' file not found when run in Xcode terminal
Solution 3: PhoneGap Xcode Missing Header files on Build 'Cordova/CDVViewController.h' file not found
Solution 4: still getting <Cordova/CDVViewController.h> file not found error in xcode
Any help is appreciated.