Xcode 7 beta 4 embedded frameworks

I am trying to run the Application with our custom framework. Framewok itself contains other frameworks.

When trying to launch the Application I am geting a following error:


dyld: Library not loaded: @rpathX.framework/X

Referenced from: /private/var/mobile/Containers/Bundle/Application/.../FrameworksY.framework/Y

Reason: no suitable image found. Did find:

/private/var/mobile/Containers/Bundle/Application/.../Frameworks/Y.framework/Frameworks/X.framework/X: mmap() error 1 at address=0x101270000, size=0x00044000 segment=__TEXT in Segment::map() mapping /private/var/mobile/Containers/Bundle/Application/.../Frameworks/Y.framework/Frameworks/X.framework/X


With Xcode 7 beta 3 everything was ok.

May be someone have similar issue?

Answered by rrck in 30713022

It is custom frameworks build with Xcode without script.


But I found a way to fix it. Revoking a developer sertificate and regenerating it fixed the problem.

Is this custom framework a Framework or a shared library with scripts to make it a framework. Are all frameworks the same and all Swift based. It was customary in ObjC days to build shared libraries and through Run Scripts make them into *.framework. The shared library way is having issues.

Accepted Answer

It is custom frameworks build with Xcode without script.


But I found a way to fix it. Revoking a developer sertificate and regenerating it fixed the problem.

I'm also having this problem trying to build an app linked to a framework containing another framework with Xcode 7 B4. I'm not able to solve it by revoking my certificates (having done this several times).

Did you find the solution..I am having the same issue.

Beta 5 on watch with Xcode 7 beta 6 installed. It took a very long time to spawn, but my watchOS 2 app with WatchKit framework ran on device for the first time. Only once though. I'm having a bit of trouble reproducing, but it did work. A beta 6 for watchOS 2 feels promising.

Xcode 7 beta 4 embedded frameworks
 
 
Q