Comments (13)
Does PathKit.framework
get built into Carthage/Build/Mac/
?
from pathkit.
Yup - it's in the second code block (I edited my post right after I pressed submit).
from pathkit.
Just curious, can you try the following before running ./main
:
$ install_name_tool -add_rpath "@executable_path/Carthage/Build/Mac/" "main"
from pathkit.
Huh... that worked. I've never heard of that command before. What does it do?
Output:
$ ./main
/Users/dan/Desktop/test
from pathkit.
I've written about it at https://github.com/kylef/Commander#installation
When you said it works perfectly for other frameworks, we're you doing this the exact same way? With swiftc
?
from pathkit.
Yup - take a look at the build script for MastCLI if you need an example.
from pathkit.
@Danappelxx I think MastCLI is only working because you haven't used any APIs from Commander only imported it.
Once you try using Commander, without the Commander framework available in the rpath it will not run too.
from pathkit.
Src/main.swift uses Commander.
from pathkit.
Ah missed that file, was looking in src/Command.swift
.
from pathkit.
Hm... adding install_name_tool -add_rpath "@executable_path/Carthage/Build/Mac/" "bin/mast"
to my setup script in MastCLI doesn't fix the PathKit issue I'm having. Would you happen to know why?
from pathkit.
@Danappelxx The rpath you've shown is relative to executable path, and Carthage
isn't inside the bin
directory.
Should become:
$ install_name_tool -add_rpath "@executable_path/../Carthage/Build/Mac/" "bin/mast"
from pathkit.
Man, you really know your stuff - thanks!
from pathkit.
Going to close this since it looks like we've resolved the problem.
from pathkit.
Related Issues (20)
- PathKit wont compile with swift 3.0 snapshot DEVELOPMENT-SNAPSHOT-2016-05-03-a HOT 1
- Swift Package Manager requires Package.swift HOT 2
- Support for Carthage dropped? HOT 6
- Bump the version to 0.7.1 HOT 4
- I want to get the size of the folder, I found this method < Path.filesize >, but I find that the size of the inaccurate, where is the problem HOT 1
- Going from absolute path to relative? HOT 5
- Combining two pathes including step back lead to incorrect path
- New Tag for SPM 4.0 HOT 5
- Glob function issue HOT 4
- Status of Linux support HOT 10
- Future of Project HOT 3
- Support recursive glob '**' HOT 1
- Why use NSString? HOT 3
- Unable to build with Xcode 13 GM HOT 10
- Xcode 13 compiler error HOT 4
- Glob function on windows HOT 2
- PathKit method calls HOT 1
- It has problem when used in App(not SPM or Terminal)
- How to add text to the last line of a text file
- glob method not matching nested subdirectories HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pathkit.