Skip to content

libappDylib.dylib 编译后提示这个库找不到,是安装不对吗? #18

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wikiInit opened this issue Sep 18, 2017 · 13 comments
Closed

Comments

@wikiInit
Copy link

请指教

@AloneMonkey
Copy link
Owner

https://github.com/AloneMonkey/MonkeyDev/wiki/Q&A#two

@wikiInit
Copy link
Author

谢谢

@wikiInit
Copy link
Author

第三方库添加成功,重签名打包都成功了,很好用方便;

@wikiInit
Copy link
Author

我想问一下,这边如果想新增一些比如controller 的调用应该怎么写呢,比如demo里面的CustomViewController,我把第三方的ipa包加入之后

@AloneMonkey
Copy link
Owner

什么叫新增一些比如controller的调用,建议多看看 https://github.com/AloneMonkey/MonkeyDevSpecs 里面的例子。

@wikiInit
Copy link
Author

就是如果需要随便添加一些非库之外的类在static attribute((constructor)) void entry(){
}方法中一起执行

@AloneMonkey
Copy link
Owner

看例子把

@illnino
Copy link

illnino commented Nov 3, 2017

Hi, I have the same problem.

Error Log

packing...
Print: Entry, "CFBundleDisplayName", Does Not Exist
Print: Entry, "CFBundleURLTypes", Does Not Exist
cp: /Users/its/Library/Developer/Xcode/DerivedData/MonkeyApp-bgafwwmapknrprbeuryrgvngmwdi/Build/Products/Debug-iphoneos/libMonkeyAppDylib.dylib: No such file or directory
Found FAT Header
Found thin header...
Found thin header...
Inserting a LC_LOAD_DYLIB command for architecture: arm
Successfully inserted a LC_LOAD_DYLIB command for arm
Inserting a LC_LOAD_DYLIB command for architecture: arm64
Successfully inserted a LC_LOAD_DYLIB command for arm64
Writing executable to /Users/its/Library/Developer/Xcode/DerivedData/MonkeyApp-bgafwwmapknrprbeuryrgvngmwdi/Build/Products/Debug-iphoneos/MonkeyApp.app/TargetApp...
Found FAT Header
Found thin header...
Found thin header...
unrestricting for architecture arm...
Found no restrict section to remove
Command /bin/sh emitted errors but did not return a nonzero exit code to indicate failure
dyld: Library not loaded: @executable_path/Frameworks/libMonkeyAppDylib.dylib
  Referenced from: /var/mobile/Containers/Bundle/Application/16F87852-C381-4D63-A1C1-8CC5E65CCFA8/MonkeyApp.app/TargetApp
  Reason: image not found
(lldb) 

However, https://github.com/AloneMonkey/MonkeyDev/wiki/Q&A#two did not fix the problem. After adding the dependencies in 'Target Dependencies', XCode Build failed and no error log. Simply a 'Build failed' notification.

May I ask why?

@AloneMonkey
Copy link
Owner

can you switch to scheme "MonkeyAppDylib" before compile , you will find the error in "report navigator"。

@illnino
Copy link

illnino commented Nov 3, 2017

Thanks.

It looks like it is the installation problem of THEOS. I installed THEOS under /Users/nino/theos.

Preparing to run Xcode Build Phase for Logos Processor...
Failed to locate Logos Processor. Is Theos installed? If not, see https://github.com/theos/theos/wiki/Installation.
Command /bin/sh failed with exit code 1

@illnino
Copy link

illnino commented Nov 3, 2017

.zshrc

[REDACTED]
# Theos
export THEOS=~/theos

export PATH=$PATH:$THEOS/bin

@AloneMonkey
Copy link
Owner

AloneMonkey commented Nov 3, 2017

recommend install it to /opt/theos

sudo git clone --recursive https://github.com/theos/theos.git /opt/theos

export THEOS=/opt/theos

export PATH=$PATH:$THEOS/bin
source ~/.zshrc

@illnino
Copy link

illnino commented Nov 6, 2017

It works like a charm. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants