Yarn berry installs node_modules - node-modules

node.js version: 16.14.0
yarn version: 3.1.1
macOS: 11.6.4 (Big Sur)
I set up and continue to work on a yarn workspace project. I committed all files including .yarn, .pnp.cjs, .pnp.loader.mjs on the github repo.
However, I got an issue after I changed my computer.
When I tried to clone the repo and execute yarn install from my desktop computer, it deleted .pnp.cjs and .pnp.loader.mjs files and installed node_modules.
Other colleagues don't experience this issue, neither on my other laptop. Node and other versions are same.
I tried to delete and reinstall the repo several times, but the results went same, too.
I know that node_modules can be installed despite of using Yarn berry when the dependencies include binary. But I don't think this is the case.
Below is the shell message when node_modules is installed.
➤ YN0000: ┌ Resolution step
➤ YN0000: └ Completed
➤ YN0000: ┌ Fetch step
➤ YN0000: └ Completed in 0s 353ms
➤ YN0000: ┌ Link step
➤ YN0076: │ #swc/core-android-arm-eabi#npm:1.2.126 The darwin-x64 architecture is incompatible with this module, link skipped.
➤ YN0076: │ #swc/core-android-arm64#npm:1.2.126 The darwin-x64 architecture is incompatible with this module, link skipped.
➤ YN0076: │ #swc/core-darwin-arm64#npm:1.2.126 The darwin-x64 architecture is incompatible with this module, link skipped.
➤ YN0076: │ #swc/core-freebsd-x64#npm:1.2.126 The darwin-x64 architecture is incompatible with this module, link skipped.
➤ YN0076: │ #swc/core-linux-arm-gnueabihf#npm:1.2.126 The darwin-x64 architecture is incompatible with this module, link skipped.
➤ YN0076: │ #swc/core-linux-arm64-gnu#npm:1.2.126 The darwin-x64 architecture is incompatible with this module, link skipped.
➤ YN0076: │ #swc/core-linux-arm64-musl#npm:1.2.126 The darwin-x64 architecture is incompatible with this module, link skipped.
➤ YN0076: │ #swc/core-linux-x64-gnu#npm:1.2.126 The darwin-x64 architecture is incompatible with this module, link skipped.
➤ YN0076: │ #swc/core-linux-x64-musl#npm:1.2.126 The darwin-x64 architecture is incompatible with this module, link skipped.
➤ YN0076: │ #swc/core-win32-arm64-msvc#npm:1.2.126 The darwin-x64 architecture is incompatible with this module, link skipped.
➤ YN0076: │ #swc/core-win32-ia32-msvc#npm:1.2.126 The darwin-x64 architecture is incompatible with this module, link skipped.
➤ YN0076: │ #swc/core-win32-x64-msvc#npm:1.2.126 The darwin-x64 architecture is incompatible with this module, link skipped.
➤ YN0076: │ #swc/core-android-arm-eabi#npm:1.2.133 The darwin-x64 architecture is incompatible with this module, link skipped.
➤ YN0076: │ #swc/core-android-arm64#npm:1.2.133 The darwin-x64 architecture is incompatible with this module, link skipped.
➤ YN0076: │ #swc/core-darwin-arm64#npm:1.2.133 The darwin-x64 architecture is incompatible with this module, link skipped.
➤ YN0076: │ #swc/core-freebsd-x64#npm:1.2.133 The darwin-x64 architecture is incompatible with this module, link skipped.
➤ YN0076: │ #swc/core-linux-arm-gnueabihf#npm:1.2.133 The darwin-x64 architecture is incompatible with this module, link skipped.
➤ YN0076: │ #swc/core-linux-arm64-gnu#npm:1.2.133 The darwin-x64 architecture is incompatible with this module, link skipped.
➤ YN0076: │ #swc/core-linux-arm64-musl#npm:1.2.133 The darwin-x64 architecture is incompatible with this module, link skipped.
➤ YN0076: │ #swc/core-linux-x64-gnu#npm:1.2.133 The darwin-x64 architecture is incompatible with this module, link skipped.
➤ YN0076: │ #swc/core-linux-x64-musl#npm:1.2.133 The darwin-x64 architecture is incompatible with this module, link skipped.
➤ YN0076: │ #swc/core-win32-arm64-msvc#npm:1.2.133 The darwin-x64 architecture is incompatible with this module, link skipped.
➤ YN0076: │ #swc/core-win32-ia32-msvc#npm:1.2.133 The darwin-x64 architecture is incompatible with this module, link skipped.
➤ YN0076: │ #swc/core-win32-x64-msvc#npm:1.2.133 The darwin-x64 architecture is incompatible with this module, link skipped.
➤ YN0000: └ Completed in 8s 368ms
➤ YN0000: Done with warnings in 9s 31ms
I got a different message when trying on my other computer which works well.
➤ YN0000: ┌ Resolution step
➤ YN0000: └ Completed
➤ YN0000: ┌ Fetch step
➤ YN0000: └ Completed in 0s 428ms
➤ YN0000: ┌ Link step
➤ YN0000: │ ESM support for PnP uses the experimental loader API and is therefore experimental
➤ YN0000: └ Completed
➤ YN0000: Done with warnings in 0s 841ms

You are having .yarnrc.yml file in one of the parent directories with nodeLinker: node-modules option inside it (maybe in your user home folder?), find this file and remove it.

Related

Cannot install dune on MacOS for OUnit2

So, I need to install OUnit2 and I'm on a 2015 MacBook Pro running MacOS Monterey 12.6. I have homebrew, I have Ocaml, I have opam. Dune is one of Ounit2's dependencies, so obviously I need it to have OUnit2. However, this is what I get:
$ opam install ounit
The following actions will be performed:
∗ install dune 3.6.1 [required by ounit2]
∗ install stdlib-shims 0.3.0 [required by ounit2]
∗ install ounit2 2.2.6 [required by ounit]
∗ install ounit 2.2.6
===== ∗ 4 =====
Do you want to continue? [Y/n] y
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><> 🐫
⬇ retrieved ounit.2.2.6 (cached)
⬇ retrieved ounit2.2.2.6 (cached)
⬇ retrieved stdlib-shims.0.3.0 (cached)
⬇ retrieved dune.3.6.1 (cached)
[ERROR] The compilation of dune.3.6.1 failed at "ocaml boot/bootstrap.ml -j 3".
#=== ERROR while compiling dune.3.6.1 =========================================#
# context 2.1.4 | macos/x86_64 | ocaml-base-compiler.4.13.0 | https://opam.ocaml.org#a9fb5a37
# path ~/.opam/4.13.0/.opam-switch/build/dune.3.6.1
# command ~/.opam/opam-init/hooks/sandbox.sh build ocaml boot/bootstrap.ml -j 3
# exit-code 2
# env-file ~/.opam/log/dune-6080-3de25d.env
# output-file ~/.opam/log/dune-6080-3de25d.out
### output ###
# [...]
# In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:23:
# In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AE.h:20:
# In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/CarbonCore.h:208:
# In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/HFSVolumes.h:25:
# /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/hfs/hfs_format.h:796:20: error: use of undeclared identifier 'uuid_string_t'
# char reserved[JIB_RESERVED_SIZE];
# ^
# /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/hfs/hfs_format.h:787:61: note: expanded from macro 'JIB_RESERVED_SIZE'
# #define JIB_RESERVED_SIZE ((32*sizeof(u_int32_t)) - sizeof(uuid_string_t) - 48)
# ^
# 2 errors generated.
#
<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><> 🐫
┌─ The following actions failed
│ λ build dune 3.6.1
└─
╶─ No changes have been performed
So far, I've tried updating my MacOS (I tried this on Mojave 11.4, same error, then upgraded to Monterey) and reinstalling my xcode Command Line Tools. Why isn't this working?
Stupid problems call for stupid solutions.
Adding typedef __darwin_uuid_string_t uuid_string_t; to line 777 of /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/hfs/hfs_format.h magically made it work.

how can I solve these errors while trying to install the ocaml-compiler as well as required packages? (terminal says build cmdliner, topkg failed)

I wanted to install the ocaml-compiler as well as required packages.
I've already successfully ran those lines:
$ sh <(curl -sL \
https://raw.githubusercontent.com/ocaml/opam/master/shell/install.sh)
$ opam init --bare
$ opam switch create 4.13.1
$ eval $(opam env)
And then I gave this command line:
opam install ocaml-lsp-server dune utop mparser \
ocamlformat ounit2 qcheck
And I became this error report:
[ERROR] The compilation of cmdliner.1.0.4 failed at "make all
PREFIX=/Users/jasmin/.opam/4.13.1".
⬇ retrieved mew_vi.0.5.0 (cached)
⬇ retrieved lwt_react.1.1.4 (cached)
⬇ retrieved odoc-parser.0.9.0 (cached)
⬇ retrieved react.1.2.1 (cached)
⬇ retrieved ocp-indent.1.8.1 (cached)
⬇ retrieved utop.2.8.0 (cached)
⬇ retrieved topkg.1.0.4 (cached)
⬇ retrieved uutf.1.0.2 (cached)
⬇ retrieved uuseg.14.0.0 (cached)
⬇ retrieved zed.3.1.0 (cached)
⬇ retrieved uucp.14.0.0 (cached)
[ERROR] The compilation of topkg.1.0.4 failed at "ocaml pkg/pkg.ml build
--pkg-name topkg --dev-pkg false".
#=== ERROR while compiling topkg.1.0.4 ========================================#
# context 2.1.0 | macos/x86_64 | ocaml-base-compiler.4.13.1 | git+https://github.com/ocaml/opam-repository.git
# path ~/.opam/4.13.1/.opam-switch/build/topkg.1.0.4
# command ~/.opam/opam-init/hooks/sandbox.sh build ocaml pkg/pkg.ml build --pkg-name topkg --dev-pkg false
# exit-code 1
# env-file ~/.opam/log/topkg-2340-8c41a0.env
# output-file ~/.opam/log/topkg-2340-8c41a0.out
### output ###
# [...]
# Command exited with code 2.
# pkg.ml: [ERROR] cmd ['ocamlbuild' '-use-ocamlfind' '-classic-display' '-j' '4' '-tag' 'debug'
# '-build-dir' '_build' 'CHANGES.md' 'LICENSE.md' 'README.md' 'pkg/META'
# 'topkg.opam' 'src/topkg.a' 'src/topkg.cmxs' 'src/topkg.cmxa'
# 'src/topkg.cma' 'src/topkg_vcs.cmx' 'src/topkg_test.cmx'
# 'src/topkg_string.cmx' 'src/topkg_result.cmx' 'src/topkg_publish.cmx'
# 'src/topkg_pkg.cmx' 'src/topkg_os.cmx' 'src/topkg_opam.cmx'
# 'src/topkg_main.cmx' 'src/topkg_log.cmx' 'src/topkg_ipc.cmx'
# 'src/topkg_install.cmx' 'src/topkg_fpath.cmx' 'src/topkg_fexts.cmx'
# 'src/topkg_distrib.cmx' 'src/topkg_conf.cmx' 'src/topkg_codec.cmx'
# 'src/topkg_cmd.cmx' 'src/topkg_build.cmx' 'src/topkg.cmx'
# 'src/topkg.cmi' 'src/topkg.mli']: exited with 10
#=== ERROR while compiling cmdliner.1.0.4 =====================================#
# context 2.1.0 | macos/x86_64 | ocaml-base-compiler.4.13.1 | git+https://github.com/ocaml/opam-repository.git
# path ~/.opam/4.13.1/.opam-switch/build/cmdliner.1.0.4
# command ~/.opam/opam-init/hooks/sandbox.sh build make all PREFIX=/Users/jasmin/.opam/4.13.1
# exit-code 1
# env-file ~/.opam/log/cmdliner-2340-7f9fe6.env
# output-file ~/.opam/log/cmdliner-2340-7f9fe6.out
### output ###
# xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><> 🐫
┌─ The following actions failed
│ λ build cmdliner 1.0.4
│ λ build topkg 1.0.4
My MacOS is already updated to the latest version. I don't know what can I do to solve it, please help me
I think you could check out the macOS part of this version of the INSTALL file.
Please open your terminal and the command xcode-select --install. It seems like you haven't installed the Clang properly on your Macbook.
If this couldn't help, please let me know. I will help up to solve this issue.
You could also visit OCaml Forum and look for helps there.

Why Spec lint throwing error Xcode build failed: Returned an unsuccesful exit code?

I am trying to create a custom framework via cocoapods to use in my Xcode Project (s). I followed the guide provided here: https://guides.cocoapods.org/making/specs-and-specs-repo.html
When I am trying to lint my pod file (Created via Podspec create) I'll receive the following error:
ERROR | [iOS] xcodebuild: Returned an unsuccessful exit code.
The specific build system error: Build system information
error: Multiple commands produce
Software details:
Xcode version: Version 10.0 (10A255)
Swift version: Swift 4.2
Cocoapods version: 1.6.0.beta.1
These are the steps I reproduced:
Pod spec file
Pod::Spec.new do |s|
s.name = "iMessageFramework"
s.version = "1.0.0"
s.summary = "Small test to test code sharing via cocoapods."
s.description = "This is some superl oco framework that was made by
kevin vugts."
s.homepage = "https://github.com/kevinvugts/"
s.license = "MIT"
s.author = { "Kevin Vugts" => "kevin-vugts#live.com" }
s.platform = :ios, "11.0"
s.source = { :git =>
"https://github.com/kevinvugts/iMessageFramework.git", :tag => "1.0.0"
}
s.source_files = "iMessageFramework/**/*"
s.swift_version = '4.2'
s.ios.deployment_target = '11.0'
end
Error output:
MBP-van-Kevin-2:iMessageFramework kevin$ pod spec lint --verbose --no-clean
iMessageFramework (1.0.0) - Analyzing on iOS 11.0 platform.
Preparing
Analyzing dependencies
Inspecting targets to integrate
Using `ARCHS` setting to build architectures of target `Pods-App`: (``)
Fetching external sources
-> Fetching podspec for `iMessageFramework` from `/Users/kevin/Highstreet Mobile/FrameworkSharing/iMessageFramework/iMessageFramework.podspec`
Resolving dependencies of
Comparing resolved specification to the sandbox manifest
A iMessageFramework
Downloading dependencies
-> Installing iMessageFramework (1.0.0)
> Copying iMessageFramework from `/Users/kevin/Library/Caches/CocoaPods/Pods/External/iMessageFramework/0e4f1587b607565154c390528a4b4ee6-5052a` to
`../../../../../private/var/folders/yx/cl0s1g4n5d17k4vqv1f860mh0000gn/T/CocoaPods-Lint-20180921-37841-e4zicu-iMessageFramework/Pods/iMessageFramework`
- Running pre install hooks
Generating Pods project
- Creating Pods project
- Adding source files to Pods project
- Adding frameworks to Pods project
- Adding libraries to Pods project
- Adding resources to Pods project
- Linking headers
- Installing targets
- Installing target `iMessageFramework` iOS 11.0
- Generating module map file at `../../../../../private/var/folders/yx/cl0s1g4n5d17k4vqv1f860mh0000gn/T/CocoaPods-Lint-20180921-37841-e4zicu-iMessageFramework/Pods/Target Support
Files/iMessageFramework/iMessageFramework.modulemap`
- Generating umbrella header at `../../../../../private/var/folders/yx/cl0s1g4n5d17k4vqv1f860mh0000gn/T/CocoaPods-Lint-20180921-37841-e4zicu-iMessageFramework/Pods/Target Support
Files/iMessageFramework/iMessageFramework-umbrella.h`
- Generating Info.plist file at `../../../../../private/var/folders/yx/cl0s1g4n5d17k4vqv1f860mh0000gn/T/CocoaPods-Lint-20180921-37841-e4zicu-iMessageFramework/Pods/Target Support
Files/iMessageFramework/iMessageFramework-Info.plist`
- Generating dummy source at `../../../../../private/var/folders/yx/cl0s1g4n5d17k4vqv1f860mh0000gn/T/CocoaPods-Lint-20180921-37841-e4zicu-iMessageFramework/Pods/Target Support
Files/iMessageFramework/iMessageFramework-dummy.m`
- Installing target `Pods-App` iOS 11.0
- Generating Info.plist file at `../../../../../private/var/folders/yx/cl0s1g4n5d17k4vqv1f860mh0000gn/T/CocoaPods-Lint-20180921-37841-e4zicu-iMessageFramework/Pods/Target Support
Files/Pods-App/Pods-App-Info.plist`
- Generating module map file at `../../../../../private/var/folders/yx/cl0s1g4n5d17k4vqv1f860mh0000gn/T/CocoaPods-Lint-20180921-37841-e4zicu-iMessageFramework/Pods/Target Support
Files/Pods-App/Pods-App.modulemap`
- Generating umbrella header at `../../../../../private/var/folders/yx/cl0s1g4n5d17k4vqv1f860mh0000gn/T/CocoaPods-Lint-20180921-37841-e4zicu-iMessageFramework/Pods/Target Support
Files/Pods-App/Pods-App-umbrella.h`
- Generating dummy source at `../../../../../private/var/folders/yx/cl0s1g4n5d17k4vqv1f860mh0000gn/T/CocoaPods-Lint-20180921-37841-e4zicu-iMessageFramework/Pods/Target Support
Files/Pods-App/Pods-App-dummy.m`
- Running post install hooks
- Writing Xcode project file to `../../../../../private/var/folders/yx/cl0s1g4n5d17k4vqv1f860mh0000gn/T/CocoaPods-Lint-20180921-37841-e4zicu-iMessageFramework/Pods/Pods.xcodeproj`
- Writing Lockfile in `../../../../../var/folders/yx/cl0s1g4n5d17k4vqv1f860mh0000gn/T/CocoaPods-Lint-20180921-37841-e4zicu-iMessageFramework/Podfile.lock`
- Writing Manifest in `../../../../../private/var/folders/yx/cl0s1g4n5d17k4vqv1f860mh0000gn/T/CocoaPods-Lint-20180921-37841-e4zicu-iMessageFramework/Pods/Manifest.lock`
Integrating client project
[!] Please close any current Xcode sessions and use `App.xcworkspace` for this project from now on.
Integrating target `Pods-App` (`../../../../../var/folders/yx/cl0s1g4n5d17k4vqv1f860mh0000gn/T/CocoaPods-Lint-20180921-37841-e4zicu-iMessageFramework/App.xcodeproj` project)
Adding Build Phase '[CP] Embed Pods Frameworks' to project.
Adding Build Phase '[CP] Check Pods Manifest.lock' to project.
-> Pod installation complete! There is 1 dependency from the Podfile and 1 total pod installed.
Building with `xcodebuild`.
$ /usr/bin/xcodebuild clean build -workspace /var/folders/yx/cl0s1g4n5d17k4vqv1f860mh0000gn/T/CocoaPods-Lint-20180921-37841-e4zicu-iMessageFramework/App.xcworkspace -scheme App -configuration Release
CODE_SIGN_IDENTITY=- -sdk iphonesimulator -destination id=9FFD6379-A93A-41CD-8823-33BAAA058090
Build settings from command line:
CODE_SIGN_IDENTITY = -
SDKROOT = iphonesimulator12.0
note: Using new build system
** CLEAN SUCCEEDED **
note: Using new build system
note: Planning build
note: Constructing build description
Build system information
warning: no rule to process file '/var/folders/yx/cl0s1g4n5d17k4vqv1f860mh0000gn/T/CocoaPods-Lint-20180921-37841-e4zicu-iMessageFramework/Pods/iMessageFramework/iMessageFramework/iMessageFramework.xcodeproj/project.xcworkspace/contents.xcworkspacedata' of type 'text.xml' for architecture 'x86_64' (in target 'iMessageFramework')
Build system information
warning: Skipping code signing because the target does not have an Info.plist file. (in target 'App')
Build system information
warning: no rule to process file '/var/folders/yx/cl0s1g4n5d17k4vqv1f860mh0000gn/T/CocoaPods-Lint-20180921-37841-e4zicu-iMessageFramework/Pods/iMessageFramework/iMessageFramework/iMessageFramework.xcodeproj/project.pbxproj' of type 'text.pbxproject' for architecture 'x86_64' (in target 'iMessageFramework')
Build system information
warning: duplicate output file '/Users/kevin/Library/Developer/Xcode/DerivedData/App-eczliqjaivhugkduytczufeyffib/Build/Products/Release-iphonesimulator/iMessageFramework/iMessageFramework.framework/Info.plist' on task: ProcessInfoPlistFile /Users/kevin/Library/Developer/Xcode/DerivedData/App-eczliqjaivhugkduytczufeyffib/Build/Products/Release-iphonesimulator/iMessageFramework/iMessageFramework.framework/Info.plist /var/folders/yx/cl0s1g4n5d17k4vqv1f860mh0000gn/T/CocoaPods-Lint-20180921-37841-e4zicu-iMessageFramework/Pods/Target Support Files/iMessageFramework/iMessageFramework-Info.plist (in target 'iMessageFramework')
Build system information
error: Multiple commands produce '/Users/kevin/Library/Developer/Xcode/DerivedData/App-eczliqjaivhugkduytczufeyffib/Build/Products/Release-iphonesimulator/iMessageFramework/iMessageFramework.framework/Info.plist':
1) Target 'iMessageFramework' (project 'Pods') has copy command from '/var/folders/yx/cl0s1g4n5d17k4vqv1f860mh0000gn/T/CocoaPods-Lint-20180921-37841-e4zicu-iMessageFramework/Pods/iMessageFramework/iMessageFramework/iMessageFramework/Info.plist' to '/Users/kevin/Library/Developer/Xcode/DerivedData/App-eczliqjaivhugkduytczufeyffib/Build/Products/Release-iphonesimulator/iMessageFramework/iMessageFramework.framework/Info.plist'
2) Target 'iMessageFramework' (project 'Pods') has process command with output '/Users/kevin/Library/Developer/Xcode/DerivedData/App-eczliqjaivhugkduytczufeyffib/Build/Products/Release-iphonesimulator/iMessageFramework/iMessageFramework.framework/Info.plist'
** BUILD FAILED **
Testing with `xcodebuild`.
-> iMessageFramework (1.0.0)
- ERROR | [iOS] xcodebuild: Returned an unsuccessful exit code.
- NOTE | xcodebuild: note: Using new build system
- NOTE | [iOS] xcodebuild: note: Planning build
- NOTE | [iOS] xcodebuild: note: Constructing build description
- NOTE | [iOS] xcodebuild: warning: no rule to process file 'iMessageFramework/iMessageFramework/iMessageFramework.xcodeproj/project.xcworkspace/contents.xcworkspacedata' of type 'text.xml' for architecture 'x86_64' (in target 'iMessageFramework')
- NOTE | [iOS] xcodebuild: warning: Skipping code signing because the target does not have an Info.plist file. (in target 'App')
- NOTE | [iOS] xcodebuild: warning: no rule to process file 'iMessageFramework/iMessageFramework/iMessageFramework.xcodeproj/project.pbxproj' of type 'text.pbxproject' for architecture 'x86_64' (in target 'iMessageFramework')
- NOTE | [iOS] xcodebuild: warning: duplicate output file '/Users/kevin/Library/Developer/Xcode/DerivedData/App-eczliqjaivhugkduytczufeyffib/Build/Products/Release-iphonesimulator/iMessageFramework/iMessageFramework.framework/Info.plist' on task: ProcessInfoPlistFile /Users/kevin/Library/Developer/Xcode/DerivedData/App-eczliqjaivhugkduytczufeyffib/Build/Products/Release-iphonesimulator/iMessageFramework/iMessageFramework.framework/Info.plist Target Support Files/iMessageFramework/iMessageFramework-Info.plist (in target 'iMessageFramework')
- NOTE | [iOS] xcodebuild: error: Multiple commands produce '/Users/kevin/Library/Developer/Xcode/DerivedData/App-eczliqjaivhugkduytczufeyffib/Build/Products/Release-iphonesimulator/iMessageFramework/iMessageFramework.framework/Info.plist':
Pods workspace available at `/var/folders/yx/cl0s1g4n5d17k4vqv1f860mh0000gn/T/CocoaPods-Lint-20180921-37841-e4zicu-iMessageFramework/App.xcworkspace` for inspection.
Analyzed 1 podspec.
[!] The spec did not pass validation, due to 1 error.
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.6.0.beta.1/lib/cocoapods/command/spec/lint.rb:94:in `run'
/Library/Ruby/Gems/2.3.0/gems/claide-1.0.2/lib/claide/command.rb:334:in `run'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.6.0.beta.1/lib/cocoapods/command.rb:52:in `run'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.6.0.beta.1/bin/pod:55:in `<top (required)>'
/usr/local/bin/pod:22:in `load'
/usr/local/bin/pod:22:in `<main>'
When I navigated to the temporary workspace file generated by cocoapods I received this error:
Showing All Messages
:-1: Multiple commands produce '/Users/kevin/Library/Developer/Xcode/DerivedData/App-eczliqjaivhugkduytczufeyffib/Build/Products/Debug-iphonesimulator/iMessageFramework/iMessageFramework.framework/Info.plist':
1) Target 'iMessageFramework' (project 'Pods') has copy command from '/var/folders/yx/cl0s1g4n5d17k4vqv1f860mh0000gn/T/CocoaPods-Lint-20180921-37841-e4zicu-iMessageFramework/Pods/iMessageFramework/iMessageFramework/iMessageFramework/Info.plist' to '/Users/kevin/Library/Developer/Xcode/DerivedData/App-eczliqjaivhugkduytczufeyffib/Build/Products/Debug-iphonesimulator/iMessageFramework/iMessageFramework.framework/Info.plist'
2) Target 'iMessageFramework' (project 'Pods') has process command with output '/Users/kevin/Library/Developer/Xcode/DerivedData/App-eczliqjaivhugkduytczufeyffib/Build/Products/Debug-iphonesimulator/iMessageFramework/iMessageFramework.framework/Info.plist'
The podspec contains s.source_files = "Constrictor/Constrictor/**/*" which includes all files including Info.plist files that are being added as if they are source files.
Either move the files outside the glob or use s.exclude_files = "Projectname/Projectname/*.plist" to exclude these files from compilation.
Add the below script to PodSpec File. It should resolve the issue.
s.pod_target_xcconfig = {
'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64'
}
s.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }

Haskell Cabal packing install fail

I wiped and reinstalled the Haskell platform (Haskell.org: cabal, stack, ghc), but now no addon package will install properly. Cabal always end with ExitFailure1. Probably because not being able to find a dependency. Most of the times however it is the main package it cannot resolve for some reason.
Any experience with that phenomenon?
Local stack build
-- While building custom Setup.hs for package json-lesson-0.1.0.0 using:
/Users/administrator/.stack/setup-exe-cache/x86_64-osx/Cabal-simple_mPHDZzAJ_2.2.0.1_ghc-8.4.3 --builddir=.stack-work/dist/x86_64-osx/Cabal-2.2.0.1 configure --with-ghc=/Users/administrator/.stack/programs/x86_64-osx/ghc-8.4.3/bin/ghc --with-ghc-pkg=/Users/administrator/.stack/programs/x86_64-osx/ghc-8.4.3/bin/ghc-pkg --user --package-db=clear --package-db=global --package-db=/Users/administrator/.stack/snapshots/x86_64-osx/lts-12.5/8.4.3/pkgdb --package-db=/Users/administrator/Desktop/Haskell/json-lesson/.stack-work/install/x86_64-osx/lts-12.5/8.4.3/pkgdb --libdir=/Users/administrator/Desktop/Haskell/json-lesson/.stack-work/install/x86_64-osx/lts-12.5/8.4.3/lib --bindir=/Users/administrator/Desktop/Haskell/json-lesson/.stack-work/install/x86_64-osx/lts-12.5/8.4.3/bin --datadir=/Users/administrator/Desktop/Haskell/json-lesson/.stack-work/install/x86_64-osx/lts-12.5/8.4.3/share --libexecdir=/Users/administrator/Desktop/Haskell/json-lesson/.stack-work/install/x86_64-osx/lts-12.5/8.4.3/libexec --sysconfdir=/Users/administrator/Desktop/Haskell/json-lesson/.stack-work/install/x86_64-osx/lts-12.5/8.4.3/etc --docdir=/Users/administrator/Desktop/Haskell/json-lesson/.stack-work/install/x86_64-osx/lts-12.5/8.4.3/doc/json-lesson-0.1.0.0 --htmldir=/Users/administrator/Desktop/Haskell/json-lesson/.stack-work/install/x86_64-osx/lts-12.5/8.4.3/doc/json-lesson-0.1.0.0 --haddockdir=/Users/administrator/Desktop/Haskell/json-lesson/.stack-work/install/x86_64-osx/lts-12.5/8.4.3/doc/json-lesson-0.1.0.0 --dependency=aeson=aeson-1.3.1.1-v8c5j6KkT8PoXkOVjikF --dependency=base=base-4.11.1.0 --dependency=bytestring=bytestring-0.10.8.2 --dependency=text=text-1.2.3.0
Process exited with code: ExitFailure 1
Using cabal install:
MacBook-2:Haskell administrator$ cabal install aeson
clang: warning: argument unused during compilation: '-nopie' [-Wunused-command-line-argument]
Resolving dependencies...
Downloading base-compat-0.10.4...
Downloading dlist-0.8.0.4...
Configuring dlist-0.8.0.4...
Downloading tagged-0.8.6...
Downloading th-abstraction-0.2.8.0...
Configuring tagged-0.8.6...
Configuring base-compat-0.10.4...
Configuring th-abstraction-0.2.8.0...
Building dlist-0.8.0.4...
Building tagged-0.8.6...
Building base-compat-0.10.4...
Building th-abstraction-0.2.8.0...
Installed dlist-0.8.0.4
Downloading time-locale-compat-0.1.1.4...
Configuring time-locale-compat-0.1.1.4...
Building time-locale-compat-0.1.1.4...
Installed tagged-0.8.6
Downloading uuid-types-1.0.3...
Configuring uuid-types-1.0.3...
Installed time-locale-compat-0.1.1.4
Building uuid-types-1.0.3...
Failed to install uuid-types-1.0.3
Build log ( /Users/administrator/.cabal/logs/ghc-8.4.3/uuid-types-1.0.3-tE9Bfk2PgXDUPgbtamBdI.log ):
cabal: Entering directory '/var/folders/81/50s00bl11pv7fn8dw4n0w03m0000gn/T/cabal-tmp-5513/uuid-types-1.0.3'
Configuring uuid-types-1.0.3...
clang: warning: argument unused during compilation: '-nopie' [-Wunused-command-line-argument]
Preprocessing library for uuid-types-1.0.3..
Building library for uuid-types-1.0.3..
<command line>: cannot satisfy -package-id hashable-1.2.7.0-3hrKWzET808E40baaqgc23
(use -v for more information)
cabal: Leaving directory '/var/folders/81/50s00bl11pv7fn8dw4n0w03m0000gn/T/cabal-tmp-5513/uuid-types-1.0.3'
Installed th-abstraction-0.2.8.0
Installed base-compat-0.10.4
Updating documentation index
/Users/administrator/Library/Haskell/share/doc/x86_64-osx-ghc-8.4.3/index.html
cabal: Error: some packages failed to install:
aeson-1.4.0.0-64eUw61rbC49Aocs9eETca depends on aeson-1.4.0.0 which failed to
install.
uuid-types-1.0.3-tE9Bfk2PgXDUPgbtamBdI failed during the building phase. The
exception was:
ExitFailure 1
Solution to the broken package issues with Cabal: in OSX there's a 'Frameworks' directory. This holds a Haskell-framework, that you need to delete, otherwise ghc stays active in the background and package building by cabal will fail. In general you need to delete the (hidden) .cabal, .stack and .ghc directories, as well the Haskell framework in 'Frameworks'. There are also two (!) Haskell directories in ~/Library and ~/User/Library you'd better delete.
Stumbled across this when looking for the Rails framework. Thank you all for contributing with possible solutions!

Cannot build the sciter-rs example, -lsciter-osx-64 not found

I downloaded the sciter SDK, extracted it, and added it to my PATH (PATH = $PATH:DOWNLOAD_PATH/bin.osx). I then tried to run the example:
$ cargo run --example minimal
Compiling sciter-rs v0.4.1 (file:///Users/username/rust/rust-sciter)
error: linking with `cc` failed: exit code: 1
|
= note: "cc" "-m64" "-L" "/usr/local/lib/rustlib/x86_64-apple-darwin/lib" "/Users/username/rust/rust-sciter/target/debug/deps/sciter.0.o" "-o" "/Users/username/rust/rust-sciter/target/debug/deps/libsciter.dylib" "/Users/username/rust/rust-sciter/target/debug/deps/sciter.metadata.o" "-Wl,-dead_strip" "-nodefaultlibs" "-L" "/Users/username/rust/rust-sciter/target/debug/deps" "-L" "/usr/local/lib/rustlib/x86_64-apple-darwin/lib" "-l" "sciter-osx-64" "-Wl,-force_load,/var/folders/sk/76ww7m4n1j5210m9vxc88hy40000gn/T/rustc.SOetAnbslBvu/liblazy_static-7f1b96a3a3eb529d.rlib" "-Wl,-force_load,/var/folders/sk/76ww7m4n1j5210m9vxc88hy40000gn/T/rustc.SOetAnbslBvu/libobjc_foundation-01845fbb083d910e.rlib" "-Wl,-force_load,/var/folders/sk/76ww7m4n1j5210m9vxc88hy40000gn/T/rustc.SOetAnbslBvu/libblock-498e22772f250b8c.rlib" "-Wl,-force_load,/var/folders/sk/76ww7m4n1j5210m9vxc88hy40000gn/T/rustc.SOetAnbslBvu/libobjc_id-1b90e6745bca1976.rlib" "-Wl,-force_load,/var/folders/sk/76ww7m4n1j5210m9vxc88hy40000gn/T/rustc.SOetAnbslBvu/libobjc-9578ff0dad145ffa.rlib" "-Wl,-force_load,/var/folders/sk/76ww7m4n1j5210m9vxc88hy40000gn/T/rustc.SOetAnbslBvu/libmalloc_buf-7aa64dffd2b03b4f.rlib" "-Wl,-force_load,/var/folders/sk/76ww7m4n1j5210m9vxc88hy40000gn/T/rustc.SOetAnbslBvu/liblibc-ad32fde1bd850538.rlib" "-Wl,-force_load,/var/folders/sk/76ww7m4n1j5210m9vxc88hy40000gn/T/rustc.SOetAnbslBvu/libstd-a4729905.rlib" "-Wl,-force_load,/var/folders/sk/76ww7m4n1j5210m9vxc88hy40000gn/T/rustc.SOetAnbslBvu/libpanic_unwind-a4729905.rlib" "-Wl,-force_load,/var/folders/sk/76ww7m4n1j5210m9vxc88hy40000gn/T/rustc.SOetAnbslBvu/libunwind-a4729905.rlib" "-Wl,-force_load,/var/folders/sk/76ww7m4n1j5210m9vxc88hy40000gn/T/rustc.SOetAnbslBvu/librand-a4729905.rlib" "-Wl,-force_load,/var/folders/sk/76ww7m4n1j5210m9vxc88hy40000gn/T/rustc.SOetAnbslBvu/libcollections-a4729905.rlib" "-Wl,-force_load,/var/folders/sk/76ww7m4n1j5210m9vxc88hy40000gn/T/rustc.SOetAnbslBvu/librustc_unicode-a4729905.rlib" "-Wl,-force_load,/var/folders/sk/76ww7m4n1j5210m9vxc88hy40000gn/T/rustc.SOetAnbslBvu/liballoc-a4729905.rlib" "-Wl,-force_load,/var/folders/sk/76ww7m4n1j5210m9vxc88hy40000gn/T/rustc.SOetAnbslBvu/liballoc_system-a4729905.rlib" "-Wl,-force_load,/var/folders/sk/76ww7m4n1j5210m9vxc88hy40000gn/T/rustc.SOetAnbslBvu/liblibc-a4729905.rlib" "-Wl,-force_load,/var/folders/sk/76ww7m4n1j5210m9vxc88hy40000gn/T/rustc.SOetAnbslBvu/libcore-a4729905.rlib" "/var/folders/sk/76ww7m4n1j5210m9vxc88hy40000gn/T/rustc.SOetAnbslBvu/libcompiler_builtins-a4729905.rlib" "-framework" "Foundation" "-l" "System" "-l" "objc" "-l" "objc" "-l" "objc" "-l" "System" "-l" "pthread" "-l" "c" "-l" "m" "-dynamiclib" "-Wl,-dylib"
= note: ld: library not found for -lsciter-osx-64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I don't understand why sciter-osx-64 library not found.
I assume you are referring to rust-sciter. The getting started instructions start with:
Download Sciter SDK and extract it somewhere.
Add target platform binaries to PATH (bin, bin.osx or bin.gtk) and install Sciter shared library to your LIBRARY_PATH.
Build library and run the minimal sciter sample: cargo run --example minimal.
It looks like you didn't install the Sciter shared library (sciter-osx-64.dylib) to your LIBRARY_PATH.

Resources