dylibs on appstore
Hi,
I am using some ffmpeg dylib in my project when i made exe all dylib are available in application bundle and exe runs successfully. when i codesigned all dylibs and create pkg for appstore it gives following error dyld error message: Library not loaded: @executable_path/.../framworks/libavresample.1.dylib Reason not suitable image found. Did find Application/..../content/macOS/.../frameworks/libavresample.1.dylib: open() failed error = 13
When i run exe on terminal it expect libavresample on /usr/local/lib but i placed all dylib on /usr/local/lib using another exe it gives following error Code Type: X86-64 (Native) Parent Process: ??? [3819] User ID: 501
Date/Time: 2015-12-21 11:09:37.771 +0530 OS Version: Mac OS X 10.11.1 (15B42) Report Version: 11 Anonymous UUID: ADD4504E-07F5-6B74-88BA-4099E1A4E8A4
Time Awake Since Boot: 10000 seconds
System Integrity Protection: enabled
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_INSTRUCTION (SIGILL) Exception Codes: 0x0000000000000001, 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY
Application Specific Information: Could not set sandbox profile data: Operation not permitted (1)
Application Specific Signatures: SYSCALL_SET_PROFILE
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 libsystem_secinit.dylib 0x00007fff8ed9049c libsecinit_setup_app_sandbox + 768 1 libsystem_secinit.dylib 0x00007fff8ed8fb31 libsecinit_initialize_once + 20 2 libdispatch.dylib 0x00007fff874803c3 dispatch_client_callout + 8 3 libdispatch.dylib 0x00007fff874802bb dispatch_once_f + 67 4 libSystem.B.dylib 0x00007fff990aaa0c libSystem_initializer + 131 5 dyld 0x00007fff62a01f1b ImageLoaderMachO::doModInitFunctions(ImageLoader::LinkContext const&) + 265 6 dyld 0x00007fff62a02094 ImageLoaderMachO::doInitialization(ImageLoader::LinkContext const&) + 40 7 dyld 0x00007fff629fe6cd ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&, ImageLoader::UninitedUpwards&) + 305 8 dyld 0x00007fff629fe662 ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&, ImageLoader::UninitedUpwards&) + 198 9 dyld 0x00007fff629fe662 ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&, ImageLoader::UninitedUpwards&) + 198 10 dyld 0x00007fff629fe662 ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&, ImageLoader::UninitedUpwards&) + 198 11 dyld 0x00007fff629fe662 ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&, ImageLoader::UninitedUpwards&) + 198 12 dyld 0x00007fff629fe662 ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&, ImageLoader::UninitedUpwards&) + 198 13 dyld 0x00007fff629fe662 ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&, ImageLoader::UninitedUpwards&) + 198 14 dyld 0x00007fff629fe662 ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&, ImageLoader::UninitedUpwards&) + 198 15 dyld 0x00007fff629fe662 ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&, ImageLoader::UninitedUpwards&) + 198 16 dyld 0x00007fff629fe662 ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&, ImageLoader::UninitedUpwards&) + 198 17 dyld 0x00007fff629fe662 ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&, ImageLoader::UninitedUpwards&) + 198 18 dyld 0x00007fff629fe553 ImageLoader::processInitializers(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&, ImageLoader::UninitedUpwards&) + 127 19 dyld 0x00007fff629fe7c3 ImageLoader::runInitializers(ImageLoader::LinkContext const&, ImageLoader::InitializerTimingList&) + 75 20 dyld 0x00007fff629f10f1 dyld::initializeMainExecutable() + 208 21 dyld 0x00007fff629f4d47 dyld::main(macho_header const, unsigned long, int, char const, char const_, char const__, unsigned long_) + 3515 22 dyld 0x00007fff629f0276 dyldbootstrap::start(macho_header const_, int, char const__, long, macho_header const_, unsigned long*) + 512 23 dyld 0x00007fff629f0036 _dyld_start + 54
Thread 0 crashed with X86 Thread State (64-bit): rax: 0x00007fff8ed90ddd rbx: 0x00007fdc7c800000 rcx: 0xb800629338aaff34 rdx: 0x0000000000000000 rdi: 0x0000000000000000 rsi: 0x00007fff8ed90ddc rbp: 0x00007fff58387000 rsp: 0x00007fff583866e0 r8: 0x0000000000000003 r9: 0x00007fff8ed90ddc r10: 0x0000000000000000 r11: 0xffffffffc95f5a33 r12: 0x00007fdc7bd08180 r13: 0x00007fdc7bd086a0 r14: 0x00007fff583867d0 r15: 0x0000000107a45580 rip: 0x00007fff8ed9049c rfl: 0x0000000000010202 cr2: 0x00007fff768201c0
Logical CPU: 0 Error Code: 0x00000000 Trap Number: 6
Binary Images: 0x107875000 - <9B4F8F7E-46CE-3B74-863C-44CC0355D319> /Applications/.app/Contents/MacOS/.app/Contents/MacOS/ 0x107a49000 - 0x10852efff +libavcodec.56.dylib (0) <252A3D76-BA5D-3A7B-BF87-3E42C4FC7773> /Applications/.app/Contents/MacOS/.app/Contents/Frameworks/libavcodec.56.dylib 0x108b2c000 - 0x108b3bff7 +libavdevice.56.dylib (0) <CA01A697-76DC-3F77-92CC-AAE6535BF5F1> /Applications/.app/Contents/MacOS/.app/Contents/Frameworks/libavdevice.56.dylib 0x108b46000 - 0x108c28ff7 +libavfilter.5.dylib (0) <773EF2C4-D7A9-322E-96FF-A2677EDAEB60> /Applications/.app/Contents/MacOS/.app/Contents/Frameworks/libavfilter.5.dylib 0x108c7b000 - 0x108dd0ff7 +libavformat.56.dylib (0) <CE7D0D9C-4803-34EC-8FE2-C50CC3BE5546> /Applications/.app/Contents/MacOS/.app/Contents/Frameworks/libavformat.56.dylib 0x108e17000 - 0x108e58fff +libavutil.54.dylib (0) <E4E9E433-B0E5-3E64-8D2C-EF4BF88979A4> /Applications/.app/Contents/MacOS/...app/Contents/Frameworks/libavutil.54.dylib
this problem aries after codesigning and pkg creation because if i run exe on terminal it runs successfully. Kindly help me what is wrong m i doing. I have run all code signing command successfully on all dylibs and frameworks. How could i check all dylibs are successfully signed or not .Why application is not able to access dylibs from application bundle (Framworks directory) why it search these on usr/local/lib . kindly help me
Regards, roopa01