Skip to content
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

file is universal (2 slices) but does not contain a(n) armv7 slice #65

Open
maikelsibbald opened this issue Nov 6, 2013 · 8 comments
Open

Comments

@maikelsibbald
Copy link

I've seen multiple people having faced this problem. I have no clue how to proper build my framework for release, debug seems to be working fine. Once I build a release with the project that is using my custom framework, it show that error.

No I've seen that Build Active Architecture Only is set to No in my Aggregate Target.

I'm using the play button to build when I have the target selected (is this the right way to "export"), and it's located in "Debug-iphoneos" and "Debug-iphonesimulator" nothing in any release folder.

And I'm using the library simply by dragging the .framework folder + .bundles to my project.

Could you help me out?

@javiersuazomatus
Copy link

I have the same problem.

@foscomputerservices
Copy link

In converting to XCode 5, I initially had these very same problems. I carefully went through my framework project and looked at each setting as described in README.mdown.

In doing so, I noticed that a few of my project settings were not in alignment with those described in 'Step 4: Disable Code Stripping. Once I fixed that and rebuilt, all is now working.

@JFGagnon
Copy link

JFGagnon commented Dec 5, 2013

I'm having the same problem. I double checked my settings, as mentioned by foscomputerservices, and everything is set properly. Any other solution?

@dominik0711
Copy link

Same problem here. When I create a framework with following settings:
target: aggregate and device iphonesimulator

then I am able to run my third party app in iphone simulator mode but NOT on my device due to following error:

File is universal (2 slices) but does not contain a(n) armv7s slice: /***/AbaWeatherForecast.framework/AbaWeatherForecast file '/***/AbaWeatherForecast.framework/AbaWeatherForecast' for architecture armv7s

The other way round. When I create a framework with following settings:
target: aggregate and IOS device

then I am able to run my third party app on my iphone device but NOT in my iphonesimulator due to following error:

Ignoring file /***/AbaWeatherForecast.framework/AbaWeatherForecast, missing required architecture i386 in file /***/AbaWeatherForecast.framework/AbaWeatherForecast (2 slices)

Does anybody has a solution for this issue?

Thanks in advance!

@PaulSolt
Copy link
Collaborator

PaulSolt commented Jan 7, 2014

  1. Make sure you don't code strip:
    iOS-Frameworkhttps://github.com/jverkoey/iOS-Framework#step-4-disable-code-stripping
  2. Make sure you don't build only for the active architecture. Check all
    project and target settings.
    iOS-Frameworkhttps://github.com/jverkoey/iOS-Framework#step-2-clean-up-the-bundle-target-settings

-Paul Solt

On Tue, Jan 7, 2014 at 11:57 AM, dominik0711 notifications@github.comwrote:

Same problem here. When I create a framework with following settings:
target: aggregate and device iphonesimulator

then I am able to run my third party app in iphone simulator mode but NOT
on my device due to following error:
File is universal (2 slices) but does not contain a(n) armv7s slice: //AbaWeatherForecast.framework/AbaWeatherForecast
file '/
/AbaWeatherForecast.framework/AbaWeatherForecast' for
architecture armv7s

The other way round. When I create a framework with following settings:
target: aggregate and IOS device

then I am able to run my third party app on my iphone device but NOT in my
iphonesimulator due to following error:
Ignoring file //AbaWeatherForecast.framework/AbaWeatherForecast, missing
required architecture i386 in file /
/AbaWeatherForecast.framework/AbaWeatherForecast
(2 slices)

Does anybody has a solution for this issue?

Thanks in advance!


Reply to this email directly or view it on GitHubhttps://github.com//issues/65#issuecomment-31755691
.

Paul Solt
PaulSolt@gmail.com
215-341-0407 (Cell)
http://www.PaulSolt.com/

Creative apps for iPhone and iPad: http://www.ArtworkEvolution.com/

@danielr
Copy link

danielr commented Apr 25, 2014

I had the same issue (and triple-checked all settings), and solved it by setting "Build Active Architectures Only" to No in the static library target/Project build settings. This is NOT mentioned in the tutorial. (NB, what @PaulSolt refers to is in the context of the resources bundle, not the library itself).

@jverkoey Perhaps worth mentioning in the tutorial? (And thanks a lot for this brilliant walk-through!)

@PaulSolt
Copy link
Collaborator

Daniel,

Post a pull request with the clarifying text so that we can improve the
guide.

-Paul

On Fri, Apr 25, 2014 at 9:37 AM, Daniel Rinser notifications@github.comwrote:

I had the same issue (and triple-checked all settings), and solved it by
setting "Build Active Architectures Only" to No in the static library
target
/Project build settings. This is NOT mentioned in the tutorial.
(NB, what @PaulSolt https://github.com/PaulSolt refers to is in the
context of the resources bundle, not the library itself).

@jverkoey https://github.com/jverkoey Perhaps worth mentioning in the
tutorial? (And thanks a lot for this brilliant walk-through!)


Reply to this email directly or view it on GitHubhttps://github.com//issues/65#issuecomment-41392966
.

Paul Solt
PaulSolt@gmail.com
215-341-0407 (Cell)
http://www.PaulSolt.com/

Creative apps for iPhone and iPad: http://www.ArtworkEvolution.com/

@mssdilipkumar
Copy link

I had same Issue

Showing Recent Messages
ld: warning: ignoring file /Users/dilipkumar/Downloads/petzview_ios_Live/OldBase/Old_PetzLive/IotCamera/IOTCamera.framework/IOTCamera, missing required architecture arm64 in file /Users/dilipkumar/Downloads/petzview_ios_Live/OldBase/Old_PetzLive/IotCamera/IOTCamera.framework/IOTCamera (2 slices)

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

8 participants