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

Framework not found #19

Closed
ronstar opened this issue May 23, 2012 · 6 comments
Closed

Framework not found #19

ronstar opened this issue May 23, 2012 · 6 comments

Comments

@ronstar
Copy link

ronstar commented May 23, 2012

I added a framework i have created following the guide, but i get an error Framework not found.

I tried adding the framework both by dragging it into the project and by linking it through build phases. I also tried adding the serenity framework to my project but received the same error.

The only project that worked was the third party project with the framework already added.

the log I receive is

Ld build/Debug-iphonesimulator/trackerTrial.app/trackerTrial normal i386
cd /Users/ronenharati/Applications/trackerTrial
setenv MACOSX_DEPLOYMENT_TARGET 10.6
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk -L/Users/ronenharati/Applications/trackerTrial/build/Debug-iphonesimulator -L/Users/ronenharati/Applications/trackerTrial/../../Downloads/jverkoey-iOS-Framework-7797eaf/sample/Serenity/build/Debug-iphoneos -F/Users/ronenharati/Applications/trackerTrial/build/Debug-iphonesimulator -F/Users/ronenharati/Applications/trackerTrial -F/Users/ronenharati/Applications/trackerTrial/../../Downloads/jverkoey-iOS-Framework-7797eaf/sample/Serenity/build/Debug-iphoneos -F/Users/ronenharati/Applications/trackerTrial/Serenity.framework -filelist /Users/ronenharati/Applications/trackerTrial/build/trackerTrial.build/Debug-iphonesimulator/trackerTrial.build/Objects-normal/i386/trackerTrial.LinkFileList -mmacosx-version-min=10.6 -Xlinker -objc_abi_version -Xlinker 2 -Xlinker -no_implicit_dylibs -D__IPHONE_OS_VERSION_MIN_REQUIRED=50100 -framework Serenity -framework CoreGraphics -framework UIKit -framework Foundation -o /Users/ronenharati/Applications/trackerTrial/build/Debug-iphonesimulator/trackerTrial.app/trackerTrial

ld: framework not found Serenity
clang: error: linker command failed with exit code 1 (use -v to see invocation)

any help will be appreciated, thanks.

@kmanimaran
Copy link

I am facing the same issue. Any pointers on how this can be fixed?

Thanks,
Karthik.

@kmanimaran
Copy link

I don't see the framework created here as outlined in Step 4: Build and Verify: ~/Library/Developer/Xcode/DerivedData//Build/Products/Debug-iphonesimulator/

Thanks,
Karthik.

@ronstar
Copy link
Author

ronstar commented Jun 6, 2012

In my case i needed to build the aggregate target, but was building only the projects target. to change this go to the product menu > edit scheme and change the scheme to the framework target.

hope this helps,
Ronen.

@kmanimaran
Copy link

I am building the aggregate target (Framework) but it doesn't seem to generate Serenity.framework. I can see in the logs that the Build Framework script is running and returns success but the file doesn't get generated.

Thanks,
Karthik.

@kmanimaran
Copy link

This worked finally. The scheme had to be set to release on the ios device.

@kmanimaran
Copy link

Can be closed.

@jverkoey jverkoey closed this as completed Jun 9, 2012
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

3 participants