I got a error trying to compile VLC custom build (VVC) on macOS 11.4 with Xcode - macos

I need some help with custom VLC build. I am running on macOS 11.4 Big Sur (inside virtual machine), trying to compile my custom VLC build of VVC (known as Versatile Video Codec), I checked everything software’s like Python, macOS SDK, CMake, Java and XCode (latest version, December 2021) before compiling. I got an error for this:
Command CompileXIB failed with a nonzero exit code
/usr/local/libo266dec/contrib/contrib-x86_64-apple-darwin20/breakpad/src/client/mac/Breakpad.xcodeproj: warning: The macOS deployment target 'MACOSX_DEPLOYMENT_TARGET' is set to 10.7, but the range of supported deployment target versions is 10.9 to 12.2. (in target 'Breakpad' from project 'Breakpad')
/usr/local/libo266dec/contrib/contrib-x86_64-apple-darwin20/breakpad/src/client/mac/Breakpad.xcodeproj: warning: The macOS deployment target 'MACOSX_DEPLOYMENT_TARGET' is set to 10.7, but the range of supported deployment target versions is 10.9 to 12.2. (in target 'breakpadUtilities' from project 'Breakpad')
** BUILD FAILED **
The following build commands failed:
CompileXIB /usr/local/libo266dec/contrib/contrib-x86_64-apple-darwin20/breakpad/src/client/mac/sender/Breakpad.xib (in target 'crash_report_sender' from project 'Breakpad')
(1 failure)
make: *** [.breakpad] Error 65
I followed the docs on https://github.com/TencentCloud/O266player
I tried build on macOS version of custom VLC, but it will not work.
Can you tell me why I got an error for this? Do I have to use previous version of macOS 10.15.6 and XCode 11.6, I don’t where is XCode old mirrors?
Also here's log file: https://pastebin.com/1gRZF1zz

Related

Flutter Apple silicon fatal Shared_preferences error: 'Flutter/Flutter.h' file not found

I am using an Apple Silicon mac for my Flutter project and I have an issue after passing my program to my new computer.
Xcode's output:
↳
In file included from /Users/gorkem/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences-0.5.12+4/ios/Classes/FLTSharedPreferencesPlugin.m:5:
/Users/gorkem/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences-0.5.12+4/ios/Classes/FLTSharedPreferencesPlugin.h:5:9: fatal error: 'Flutter/Flutter.h' file not found
#import <Flutter/Flutter.h>
^~~~~~~~~~~~~~~~~~~
1 error generated.
error: the following command failed with exit code 1 but produced no further output
CompileC /Users/gorkem/Library/Developer/Xcode/DerivedData/Runner-ghjviwzylhbejhfsayqxcrbfzwyc/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/local_auth.build/Objects-normal/x86_64/FLTLocalAuthPlugin.o /Users/gorkem/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/local_auth-0.6.3+4/ios/Classes/FLTLocalAuthPlugin.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
Command CompileSwift failed with a nonzero exit code
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'shared_preferences' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'vibration' from project 'Pods')
I think that the problem comes from the file flutter.h inside the shared preferences package.
Here's one of the part of the problem. If you need more, I can edit it anytime.
I already did many things related to this issue but apparently, it didn't work. If you have a recommendation, I'l listen to it.
BTW, I tried flutter clean and then rerun, tried to update all the packages. None of them work.
Try removing CocoaPod from your project
cd ios
pod deintegrate
flutter clean
flutter run
If this doesn't work try reinstalling flutter or switch to beta channel

Xcode 7.3.1 can't build from the commandline swift-build missing

[OSX 10.11.6, Xcode 7.3.1]
I have Xcode 7.3.1 installed from the App Store and I can compile Swift code inside the IDE. However, I am unable to build from the commandline. When I try to, I get an error:
error: unable to invoke subcommand: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-build (No such file or directory)
I don't have a toolchain tab in my Preferences -> Components dialog, which, according to other threads I've read, is because I don't have any other toolchains installed. Since, according to Apple, Swift 2.2.1 came with Xcode 7.3.1 (but my --version reports 2.2), what command can I issue to create the /Library/Developer/Toolchain folder (or other variations that will work) that will allow me to build from the command line?
The SnapShot master trunk is up to Swift 3, which is not suitable for my needs and I don't want to (can't afford to) download another gig of data, when I already have the compiler, linker, etc. And I prefer not to have a -dev version of Swift.
Please help.
Additional info:
swift --version
Apple Swift version 2.2 (swiftlang-703.0.18.8 clang-703.0.31)
which swift
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift
swift build
error: unable to invoke subcommand: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-build (No such file or directory)
I don't think swift-build is available in Swift 2.2.1 (Xcode 7.3.1), as it's part of the Package Manager which is Swift 3 only:
The Package Manager will be released with Swift 3 and is currently only available with the Swift 3 development snapshots.

Xcode build fails for react-native AwesomeProject

I'm running Xcode 4.6.3 on OS X 10.7.5. I've set the iOS Deployment Target to 6.1 in Xcode and selected the iPhone 6.1 simulator. When I hit Run the React Packager appears and says it is ready.
Xcode then fails to build with four parse errors related to RCTImageDownloader.m and there are also nine Target Integrity warnings:
/Users/SM/AwesomeProject/node_modules/react-native/Libraries/AdSupport/RCTAdSupport.xcodeproj
iOS Deployment Target 7.0 is newer than SDK iOS 6.1 in target
RCTAdSupport
What are my options for resolving this problem?
The tools do not support building for a newer deployment target than the SDK supports. You need to lower the deployment target from 7.0 to 6.1 or use newer tools (which will require a newer version of OSX as well).

Unable to determine compiler to use - the abstract compiler specification is missing from this Xcode installation

Hi I have iMac with OS X Yosemite version 10.10.3 and I've installed the last Xcode 6.3 beta 2 with Swift 1.2 and when I try to Run the App I receive:
Check dependencies
Unable to determine compiler to use - the abstract compiler specification is missing from this Xcode installation.
and everytime when I open my project with Xcode I receive a warning:
warning: no rule to process file '/Users/Bogdan-iMac/Desktop/My App/My App/My_App.xcdatamodel' of type wrapper for architecture x86_64
and I have to open Build Phases in Compile Sources I have to remove My_App.xcdatamodel and add it again to prevent the warning
Link in Apple Dev Forums: https://devforums.apple.com/thread/263126
I had the same problem. Restart helped, even under Yosemite 10.10.2
I had the same problem here. The error disappeared after upgrading Yosemite to version 10.10.3 (14D87h) from today.
restart XCode-Beta helps me! And my Yosemite is 10.10.3 Xcode is Version 6.3 (6D532l)

XCode 6 GM: linker error when building for device (Metal not found)

I'm trying to build my project in XCode 6 GM for device (base SDK version is 7.1), and I get linker error:
ld: framework not found Metal for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
The same project builds perfectly in XCode 5 without any changes in project settings. (Also, build in XCode 6 for simulator succeeds.)
I'm building with SDK 7.1, why is XCode 6 trying to link to Metal anyway?
Having the same problem. I am able to build the app fine in Xcode 6 pointed to the simulator or a phone, but when archiving I get this error. I am using the iOS 7.1 SDK.
I am using cocoapods and found that I can fix the problem by either setting the 'Link Frameworks Automatically' to NO for the pods project, or by archiving while there is a device plugged in and the scheme is targeted to a device not just 'iOS Device.'
This is a problem caused by Xcode 6's default project build settings.
Edit: Here is another explanation of this solution: http://www.appsee.com/blog/dev/xcode-new-link-frameworks-automatically-fix-framework-not-found-metal-for-architecture-armv7
I had the same problem in a code base building fine iOS 8.0 SDK (Xcode 6.0.1) and having this issue with iOS 7.1 SDK (though in Xcode 5.1.1). There seem to be a lot of different project having this problem. See here for more details.
What fixed the issue for me was going to my targets 'Build Phase'-settings, 'Link Binary with Libraries' and there removing and re-adding the CoreVideo.framework, 'Product > Clean', a finally the 'Product > Run'.
Using the iOS 7.1 SDK with Xcode 6 is not a supported configuration. The linker is behaving correctly here. The 7.1 SDK doesn't contain Metal.framework to link against, and you have requested to link against Metal.framework. You need to use the iOS 8.0 SDK or later to use Metal.framework.

Resources