graphhopper / graphhopper/graphhopper-ios

No input stream found in class path!?'

Open
#31 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
Objective-C
Stars
73
Forks
28
PR merge metrics
No merged PRs in 30d

Description

While I'm trying to create a route, I'm getting this error:

```
2018-02-15 10:13:24.211 graphhopper-ios-sample[4470:260583] *** Terminating app due to uncaught exception 'JavaLangRuntimeException', reason: 'java.lang.RuntimeException: java.lang.IllegalStateException: No input stream found in class path!?'
*** First throw call stack:
(
0 CoreFoundation 0x000000010b98cf65 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x000000010b406deb objc_exception_throw + 48
2 graphhopper-ios-sample 0x0000000109074b81 -[TranslationMap doImport] + 881
3 graphhopper-ios-sample 0x0000000108f764d9 GraphHopper_init + 249
4 graphhopper-ios-sample 0x0000000108f763c9 -[GraphHopper init] + 25
5 graphhopper-ios-sample 0x0000000108f58158 -[Directions hopper] + 184
6 graphhopper-ios-sample 0x0000000108f5881b __19-[Directions route]_block_invoke + 331
7 libdispatch.dylib 0x000000010d2feef9 _dispatch_call_block_and_release + 12
8 libdispatch.dylib 0x000000010d31f49b _dispatch_client_callout + 8
9 libdispatch.dylib 0x000000010d307c8b _dispatch_root_queue_drain + 1829
10 libdispatch.dylib 0x000000010d307561 _dispatch_worker_thread3 + 111
11 libsystem_pthread.dylib 0x000000010d6501ca _pthread_wqthread + 1387
12 libsystem_pthread.dylib 0x000000010d64fc4d start_wqthread + 13
)
libc++abi.dylib: terminating with uncaught exception of type JavaLangRuntimeException
```
It happens in GraphHopper.init() method

I've met this issue in sample app and when adding it into my project. All translations are added to project, also [https://github.com/graphhopper/graphhopper-ios/issues/28](url) this doesn't helped me.

I'm successfully imported all languages and added them to Copy Bundle Resourses, but this doesn't help me.

Importing project in this steps:

```
git clone https://github.com/graphhopper/graphhopper-ios
cd graphhopper-ios/
git checkout 0.8.2
git submodule update --init
./graphhopper-ios-sample/import-sample.sh
git submodule update
```

Please help, I've already spent 3 days for this problem

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.