jeffbonnes / appc-doc-provider-example

Example of a Document Provider Extension in Appcelerator
4 stars 2 forks source link

Update to recommended file-provider settings #1

Open hansemannn opened 7 years ago

hansemannn commented 7 years ago

Hey @jeffbonnes,

besides the changes we talked about via mail (moving the extension to <project-root>/extensions), you might also want to check out the change made to the extension-example you were using. Please check with that example again to ensure everything is in sync. The Titanium part (building, linking) works well, so the remaining issues have to be regarding the native side.

jeffbonnes commented 7 years ago

Hi @hasemannn, I didn't use any special extension example - just the one in Xcode you get from choosing File > New Target | Document Provider with an empty app in XCode. I did try this with a new Document Provider from XCode8 (in the same directory as Titanium app as well) but got the same error. Do you have any examples of a working Document Provider in Titanium 6?

jeffbonnes commented 7 years ago

Also, if you run the Document Provider in this app in a Native iOS app, it works with no errors.

hansemannn commented 7 years ago

Alright, thanks. I only tried with extensions I used in other sample-apps (like this one), last tested with 5.5.0 I think. So it might indeed be a Titanium issue! I am just curious about the error, since Titanium simply links the targets and let the extensions do their own stuff.

If that's possible for you, could you validate if it broke between 5.5.0 and 6.0.0 or maybe 6.0.0 to 6.1.0? I will put it on our list anyway!

jeffbonnes commented 7 years ago

I only tested it on 5.4 (and it worked) and then again on 6.0 where it doesn't work. I can't seem to fully rollback to 5.4 and get the previous version to build with an older version of Titanium - if you have any suggestions on how I can revert to a old working version, I would be happy to test each step and come up with the breaking point.

hansemannn commented 7 years ago

Opened a JIRA for you: https://jira.appcelerator.org/browse/TIMOB-25025

You can download 5.5.1.GA by using appc ti sdk install 5.5.1.GA from the terminal and simply update the tiapp.xml to use it. Xcode 8 will work fine with it. That's extremely helpful, thank you!

hansemannn commented 7 years ago

I have added some more links of related issues in the native world (even one from yesterday). Most of them solved it by recreating the target, did you try that as well?