Comments (6)
Try this:
First set "Architectures" back to the default $(ARCHS_STANDARD_32_BIT)
Under "Architectures", select "other". It should show $(ARCHS_STANDARD_32_BIT) in a list view. Click the + button and add "armv6".
I just tried this approach on a fresh fake framework project and it seems to be working (builds without error, lipo --info tells me it has armv6, armv7, i386). Let me know if this helps.
from ios-universal-framework.
Please note that iOS Simulator is now x86_64 on OS X Lion. So you need to build x86_64 too.
from ios-universal-framework.
That works. I tested on my real framework too. It seems that when I added "armv7 armv6" explicitly, Xcode was not building for i386 and this was causing a crash when building for the simulator.
@kstenerud thanks for the fix and @nskboy thanks for the tip.
from ios-universal-framework.
I'm having the same issue. I can compile the framework fine when it's not a dependency of my main project. When I add it to my main project I get this:
=== BUILD NATIVE TARGET SQLiteMath OF PROJECT SQLiteMath WITH CONFIGURATION Debug ===
Check dependencies
[BEROR]No architectures to compile for (ARCHS=armv6 armv7, VALID_ARCHS=i386).
** BUILD FAILED **
The following build commands failed:
Check dependencies
(1 failure)
I tried the suggestion from above but that didn't help.
from ios-universal-framework.
It looks like the framework is built correctly. All the parts are there and the binary has both armv6 and armv7. It also compiles without error for the simulator. Just gets that error when compiling for device.
from ios-universal-framework.
I changed the script, and it ran perfact:
echo "Build other platform"
if [[ "$UFW_OTHER_PLATFORM" = "iphonesimulator" ]]
then
echo xcodebuild -project "${PROJECT_FILE_PATH}" -target "${TARGET_NAME}" -configuration "${CONFIGURATION}" ARCHS=i386 -sdk ${UFW_OTHER_PLATFORM}${UFW_SDK_VERSION} BUILD_DIR="${BUILD_DIR}" CONFIGURATION_TEMP_DIR="${PROJECT_TEMP_DIR}/${CONFIGURATION}-${UFW_OTHER_PLATFORM}" $ACTION
xcodebuild -project "${PROJECT_FILE_PATH}" -target "${TARGET_NAME}" -configuration "${CONFIGURATION}" ARCHS=i386 -sdk ${UFW_OTHER_PLATFORM}${UFW_SDK_VERSION} BUILD_DIR="${BUILD_DIR}" CONFIGURATION_TEMP_DIR="${PROJECT_TEMP_DIR}/${CONFIGURATION}-${UFW_OTHER_PLATFORM}" $ACTION
else
echo xcodebuild -project "${PROJECT_FILE_PATH}" -target "${TARGET_NAME}" -configuration "${CONFIGURATION}" ARCHS=$(VALID_ARCHS) -sdk ${UFW_OTHER_PLATFORM}${UFW_SDK_VERSION} BUILD_DIR="${BUILD_DIR}" CONFIGURATION_TEMP_DIR="${PROJECT_TEMP_DIR}/${CONFIGURATION}-${UFW_OTHER_PLATFORM}" $ACTION
xcodebuild -project "${PROJECT_FILE_PATH}" -target "${TARGET_NAME}" -configuration "${CONFIGURATION}" ARCHS=$(VALID_ARCHS) -sdk ${UFW_OTHER_PLATFORM}${UFW_SDK_VERSION} BUILD_DIR="${BUILD_DIR}" CONFIGURATION_TEMP_DIR="${PROJECT_TEMP_DIR}/${CONFIGURATION}-${UFW_OTHER_PLATFORM}" $ACTION
fi
from ios-universal-framework.
Related Issues (20)
- Missing armv7s slice when use Xcode 6 HOT 2
- Too many arguments to function call, expected 0 have 5 'objc_msgsend' declared here HOT 1
- Unable to install iOs-Universal-Framework
- Importing a framework created with iOS-Universal-Framework into a new Swift project HOT 1
- [feature] A template to make universal dynamic framework HOT 3
- Apple Frameworks Not So Ideal, Should this Repo be Retired? HOT 2
- Xcode 6 universal framework HOT 3
- UFW_OPEN_BUILD_DIR=False not working
- source file(.m) of framework can be seen in user project
- Problems using the created iOS static frameworks for simulator architecture.
- how to support βarm64β HOT 1
- Framework version from info-plist
- Hello, found that there is a mistake, lead to can't compile HOT 1
- XCode 7 Support HOT 12
- XCode 7 invalid framework packaging HOT 5
- Create Universal static library Error appears in Xcode 7. HOT 1
- Could i convert an existing static library into a dynamic framework HOT 1
- How to install static iOS framework? HOT 3
- iOS Real Static Framework Installer HOT 2
- VDNs
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ios-universal-framework.