Code Monkey home page Code Monkey logo

Comments (6)

kstenerud avatar kstenerud commented on August 17, 2024

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.

rbsgn avatar rbsgn commented on August 17, 2024

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.

smeador avatar smeador commented on August 17, 2024

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.

cgriffin avatar cgriffin commented on August 17, 2024

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.

cgriffin avatar cgriffin commented on August 17, 2024

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.

zhouhuishine avatar zhouhuishine commented on August 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.