robovm / robovm-samples

RoboVM sample projects
Apache License 2.0
92 stars 71 forks source link

[CustomFrameworks] framework not found exception #89

Closed SaeedMasoumi closed 8 years ago

SaeedMasoumi commented 8 years ago

Hi, When I run CustomFrameworks module, I receive the following error message:

[WARNING] ld: warning: directory not found for option '-F/robovm-samples/CustomFrameworks/MyObjectiveCFramework/build'
[WARNING] ld: warning: directory not found for option '-F/robovm-samples/CustomFrameworks/MySwiftFramework/build'
[ERROR] ld: framework not found MyObjectiveCFramework
[ERROR] clang: error: linker command failed with exit code 1 (use -v to see invocation)
[ERROR] Couldn't compile app

Also i try to change

 <frameworkPaths>
        <path>MyObjectiveCFramework/build</path>
        <path>MySwiftFramework/build</path>
    </frameworkPaths>

to

  <frameworkPaths>
        <path>MyObjectiveCFramework/MyObjectiveCFramework</path>
        <path>MySwiftFramework/MySwiftFramework</path>
    </frameworkPaths>

But same error appears again.

Any ideas?

SaeedMasoumi commented 8 years ago

Sorry, I forgot to show my build-frameworks.sh logs.

.
.
.
.
Check dependencies
Code Sign error: No code signing identities found: No valid signing identities (i.e. certificate and private key pair) were found.

** BUILD FAILED **

The following build commands failed:
    Check dependencies
(1 failure)
cp: MySwiftFramework/build/Release-iphoneos/MySwiftFramework.framework/MySwiftFramework: No such file or directory
Build settings from command line:
    ARCHS = arm64
    SDKROOT = iphoneos9.2

=== BUILD TARGET MySwiftFramework OF PROJECT MySwiftFramework WITH CONFIGURATION Release ===

Check dependencies
Code Sign error: No code signing identities found: No valid signing identities (i.e. certificate and private key pair) were found.

** BUILD FAILED **

The following build commands failed:
    Check dependencies
(1 failure)
cp: MySwiftFramework/build/Release-iphoneos/MySwiftFramework.framework/MySwiftFramework: No such file or directory
fatal error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: can't open input file: MySwiftFramework/build/MySwiftFramework.armv7.dylib (No such file or directory)
cp: MySwiftFramework/build/Release-iphoneos/MySwiftFramework.framework/: No such file or directory
cp: directory MySwiftFramework/build/MySwiftFramework.framework does not exist