After update to Xcode 5 - ld: symbol(s) not found for architecture armv7 or armv7s linker error

后端 未结 7 1388
无人及你
无人及你 2020-12-04 06:27

I just updated my iPhone 4S software to iOS 7 Beta 2 while I was in the middle of putting the final touches on a new app (Phonegap).. not a good idea!

After it was d

7条回答
  •  星月不相逢
    2020-12-04 07:05

    If your project was built using Cordova 2.x and Xcode 4.x, and you are receiving the error mentioned by the OP, this solution worked for me. (I was experiencing the error with Cordova 2.5 and Xcode 5).

    https://issues.apache.org/jira/browse/CB-3768

    Go to your Cordova Project

    Root Folder -> CordovaLib -> Right Click CordovaLib.xcodeproj -> Show Package Contents -> Open project.pbxproj

    Replace all occurrences of (I had 4)

    buildSettings = {
        ALWAYS_SEARCH_USER_PATHS = NO;//in 2 out of 4 occurrences
        "ARCHS[sdk=iphoneos*]" = armv7;
        "ARCHS[sdk=iphoneos6.*]" = (
            armv7,
            armv7s,
        );
            /* other settings here */
    };
    

    With this

    buildSettings = {
        ALWAYS_SEARCH_USER_PATHS = NO;//in 2 out of 4 occurrences
        "ARCHS[sdk=iphoneos*]" = armv7;
        "ARCHS[sdk=iphoneos7.*]" = (
            armv7,
            armv7s,
        );
        "ARCHS[sdk=iphoneos6.*]" = (
            armv7,
            armv7s,
        );
        /* other settings here */
    };
    

    Now your project will build fine!

提交回复
热议问题