Skip to content

编译好一个ollvm之后,在xcode下,无法正常编译ipa #49

@sevenblack3166

Description

@sevenblack3166

Describe the bug
编译好一个xcode工具链后,放到/Library/Developer/目录下,xcode中选择对应的工具链,然后执行打包,会报错Could not build module 'Foundation',已经设置index-store-path 为no了;

To Reproduce
Steps to reproduce the behavior.
git clone -b llvm-13.x https://github.com/heroims/obfuscator.git
cd obfuscator
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DLLVM_CREATE_XCODE_TOOLCHAIN=ON -DLLVM_ENABLE_PROJECTS="clang;libcxx;libcxxabi" -DLLVM_ENABLE_NEW_PASS_MANAGER=OFF ../llvm
make -j8
sudo make install-xcode-toolchain
mv /usr/local/Toolchains /Library/Developer/

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: macOS
  • Version: 14.4
  • cflag: -mllvm -fla -mllvm -bcf

Souce Code (please complete the following information):

  • git link: [e.g. https://github.com/apple/llvm-project, https://android.googlesource.com/toolchain/llvm-project]
  • branch [e.g. llvm.org/release/14.x, ndk-r24-release]
  • commit hash: [e.g. c62053979489ccb002efe411c3af059addcb5d7d, 74a38736c7799c63edca568455768f37ddb1b782]

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions