I use arcmap 10.2. I add an Openstreetmap basemap. I do file share as Tile Package. i do an analyse and i have this error message : severity high status unresolved code 00005 Layer type is not supported.
Is there a way to create a tile package from an openstreetmap ?
Tiled map services are one of the unsupported data types that cannot be added to ArcMap and exported to a TPK. While the OSM basemap isn't available, you could look at using the new TileCacheTask class to generate an offline basemap for a few of other other tiled basemaps.
If you have ArcGIS Server, it's significantly faster to use that for caching instead, as it's multi-threaded and last time I checked ArcMap caching was not. Publish a service to ArcGIS Server using whatever cache settings are appropriate for what you're trying to accomplish. I recommend selecting "Build cache manually after the service is published" and then, in ArcCatalog, right-click on the service and select Manage Cache > Manage Tiles to manually start the caching job with n number of caching server instances (which will be limited based on the maximum number of instances you have set in the System\Caching Tools service on your server). After that's done you can right-click on the service again and select Manage Cache > Export Cache and then chance the export cache type to TILE_PACKAGE. I recommend doing this on 10.2+ as this workflow in previous versions was error prone due to some bugs that appear to have now been fixed. While ArcMap *can* cache, it's really not optimized for it.