objective c - Why do I get this error when compiling a LiveCode iOS external for device but it compiles fine for the simulator? -
There is an error:
architecture undefined symbols: "___udivmodsi4", for ARMv7 Referenced: _sqlite3BitvecSet libmergDropboxSync.a (sqlite3.o) _sqlite3BitvecClear in libmergDropboxSync.a (sqlite3.o) _sqlite3BitvecTest libmergDropboxSync.a (sqlite3.o) ld: Architectural armv7 not found for the collection Symbol (s) Collection 2: LD back 1 Exit status lipoproteins input file can not be opened: /var/folders/np/1scdfrdd7kx64bbykn22wj200000gn/T//ccvBM79H.out (No such file or directory) error: the external dylib Construction In order to missing failed to add, probably due to the framework or library reference - check MergDropboxSync.ios file command / bin / sh content emitted errors but did not return a Nonjro Autget code to indicate the failure < / Code> When I create a simulator, it just fine that my library is compiling properly
# External's 'dylib' form build: device There is a problem in that This makes it possible for the dylib that is documented in lclink.sh for testing only one dependency as is only at the level of connecting - it is used by the simulator built-in, and for the device creation dependency check "$ PLATFORM_DEVELOPER_BIN_DIR / g ++" -dynamiclib $ archs -isysroot "$ SDKROOT" -o "$ BUILT_PRODUCTS_DIR / $ PRODUCT_NAME.dylib" "$ BUILT_PRODUCTS_DIR / $ EXECUTABLE_NAME" $ SYMBOL_ARGS $ symbol $ if [$ deps? ! = 0]; Then "echo" error: failed to add the step of the external diil building, probably due to missing framework or library references - check the contents of the $ PRODUCT_NAME.ios file "exit $? Fi I tried to skip this step using the following:
if [ "$ EFFECTIVE_PLATFORM_NAME" == "-iphonesimulator"]; then # external 'Dailib' form Build - This is used by simulator construction, and as device # Dependency check for proof "$ PLATFORM_DEVELOPER_BIN_DIR / g ++" -dynamiclib $ archs -isysroot "$ SDKROOT" -o "$ BUILT_PRODUCTS_DIR / $ PRODUCT_NAME.dylib" "$ BUILT_PRODUCTS_DIR / $ EXECUTABLE_NAME" $ SYMBOL_ARGS $ symbol $ if [$ deps ?! = 0]; Then "echo" error: Failed to add the step of the external diil building, probably due to missing framework or library references - check the contents of the $ PRODUCT_NAME.ios file "exit $? Fi files Object files are allowed to create stable linking in order to continue this script and to create tools. He made fine but then when I went to make standalone, the dependency probe was blocked. Can anyone recommend any remedy?
Note that I use slightly modified lclink.sh which includes weak linking support and optional framework based on the SDK you are creating. It can be found here if it helps:
EDIT Given that the error was clearly related to armv7, I tried to build a build against armv7s and it makes it okay I am coming to the conclusion that the new Dropbox sync sdk can contain only some armv7s code. It seems that related sequel is related to the error. And what is not certain to try at this level ...
Edit It seems that Apple with Dropbox sync API Being compiled with LLVM and LiveCode external and the device is being compiled with Apple GCC being compiled.
does this help any? When I had a similar problem to some extent, then I wrote it.
Comments
Post a Comment