ropilz / phonegap-parse-plugin

Phonegap 3.0.0 plugin for Parse.com push service
5 stars 4 forks source link

iOS Build Error with Cordova 5.4.x #5

Open niraj-shah opened 8 years ago

niraj-shah commented 8 years ago

The plugin does not compile for iOS using the latest version of Cordova. I see the following error:

ld: warning: directory not found for option '-F/.../platforms/ios/MyApp/Plugins/medlei-parse-push-plugin'
ld: framework not found Bolts
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Anyone else encountered this issue?

arcassar commented 8 years ago

I don't know if it will help you but i sometimes had the same issue.

The problem comes from the directory structure. Check in /platforms/ios/myapp/plugins/medlei...plugin/ if you have a directory for bolt framework.

In my case, i had the directory but in this one, the structure was not good. There were subfolders and xcode didn't go in it. So i placed the content of the subfolders at the root (so folder called bolt.framework).

Now i have platforms/ios/myapp/plugins/medlei../bolts.framework/ and in this directory i have a directory called "headers" and a file called "bolts".

goneale commented 8 years ago

To fix this, I dropped the packages again within the SDK from here into the Frameworks area within the platforms/ios Xcode project and all rebuilt OK - https://www.parse.com/apps/quickstart#parse_data/mobile/ios/native/existing

pablolopesk8 commented 8 years ago

The answer of @arcassar resolved for me. But, my folder`s name is Bolts.framework and my file name is Bolts, with first letter in uppercase

otmezger commented 8 years ago

I had the same issue. AS @arcassar said, the Bolt.framework directory is somehow different than expected. It is needed that you copy the Bolt and Headers directories in Bolt.framework/Versions/A/ into Bolt.framework/. Once you do this, it will work.

crazy...